mirror of
https://github.com/TeamAmaze/AmazeFileManager.git
synced 2026-10-21 07:56:38 +08:00
fdroid: remove rar support
This commit is contained in:
+1
-1
@@ -166,7 +166,7 @@ dependencies {
|
||||
|
||||
implementation "org.apache.commons:commons-compress:$commonsCompressVersion"
|
||||
|
||||
implementation "com.github.junrar:junrar:$junrarVersion"
|
||||
playImplementation "com.github.junrar:junrar:$junrarVersion"
|
||||
|
||||
implementation "com.afollestad.material-dialogs:core:$materialDialogsVersion"
|
||||
implementation "com.afollestad.material-dialogs:commons:$materialDialogsVersion"
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2021 Arpit Khurana <arpitkh96@gmail.com>, Vishal Nehra <vishalmeham2@gmail.com>,
|
||||
* Emmanuel Messulam<emmanuelbendavid@gmail.com>, Raymond Lai <airwave209gt at gmail.com> and Contributors.
|
||||
*
|
||||
* This file is part of Amaze File Manager.
|
||||
*
|
||||
* Amaze File Manager is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.amaze.filemanager.filesystem.compressed.extractcontents.helpers
|
||||
|
||||
import android.content.Context
|
||||
import com.amaze.filemanager.fileoperations.utils.UpdatePosition
|
||||
import com.amaze.filemanager.filesystem.compressed.extractcontents.Extractor
|
||||
|
||||
class RarExtractor(
|
||||
context: Context,
|
||||
filePath: String,
|
||||
outputPath: String,
|
||||
listener: OnUpdate,
|
||||
updatePosition: UpdatePosition
|
||||
) : Extractor(context, filePath, outputPath, listener, updatePosition) {
|
||||
override fun extractWithFilter(filter: Filter) {}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2021 Arpit Khurana <arpitkh96@gmail.com>, Vishal Nehra <vishalmeham2@gmail.com>,
|
||||
* Emmanuel Messulam<emmanuelbendavid@gmail.com>, Raymond Lai <airwave209gt at gmail.com> and Contributors.
|
||||
*
|
||||
* This file is part of Amaze File Manager.
|
||||
*
|
||||
* Amaze File Manager is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.amaze.filemanager.filesystem.compressed.showcontents.helpers
|
||||
|
||||
import android.content.Context
|
||||
import com.amaze.filemanager.asynchronous.asynctasks.compress.UnknownCompressedFileHelperCallable
|
||||
import com.amaze.filemanager.filesystem.compressed.showcontents.Decompressor
|
||||
|
||||
class RarDecompressor(context: Context) : Decompressor(context) {
|
||||
override fun changePath(
|
||||
path: String,
|
||||
addGoBackItem: Boolean
|
||||
) =
|
||||
UnknownCompressedFileHelperCallable(filePath, addGoBackItem)
|
||||
|
||||
override fun realRelativeDirectory(dir: String): String {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2022 Arpit Khurana <arpitkh96@gmail.com>, Vishal Nehra <vishalmeham2@gmail.com>,
|
||||
* Emmanuel Messulam<emmanuelbendavid@gmail.com>, Raymond Lai <airwave209gt at gmail.com> and Contributors.
|
||||
*
|
||||
* This file is part of Amaze File Manager.
|
||||
*
|
||||
* Amaze File Manager is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.github.junrar.exception;
|
||||
|
||||
public class UnsupportedRarV5Exception extends Exception {
|
||||
public UnsupportedRarV5Exception(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
public UnsupportedRarV5Exception() {}
|
||||
}
|
||||
@@ -100,7 +100,7 @@ public abstract class CompressedHelper {
|
||||
|
||||
if (isZip(type)) {
|
||||
extractor = new ZipExtractor(context, file.getPath(), outputPath, listener, updatePosition);
|
||||
} else if (isRar(type)) {
|
||||
} else if (BuildConfig.FLAVOR.equals("play") && isRar(type)) {
|
||||
extractor = new RarExtractor(context, file.getPath(), outputPath, listener, updatePosition);
|
||||
} else if (isTar(type)) {
|
||||
extractor = new TarExtractor(context, file.getPath(), outputPath, listener, updatePosition);
|
||||
@@ -144,7 +144,7 @@ public abstract class CompressedHelper {
|
||||
|
||||
if (isZip(type)) {
|
||||
decompressor = new ZipDecompressor(context);
|
||||
} else if (isRar(type)) {
|
||||
} else if (BuildConfig.FLAVOR.equals("play") && isRar(type)) {
|
||||
decompressor = new RarDecompressor(context);
|
||||
} else if (isTar(type)) {
|
||||
decompressor = new TarDecompressor(context);
|
||||
|
||||
@@ -63,8 +63,6 @@ dependencies {
|
||||
|
||||
implementation "org.apache.commons:commons-compress:$commonsCompressVersion"
|
||||
|
||||
implementation "com.github.junrar:junrar:$junrarVersion"
|
||||
|
||||
//zip4j: support password-protected zips
|
||||
implementation "net.lingala.zip4j:zip4j:$zip4jVersion"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user