AndroidUn7zip
v1.6.0
A simple library with lzma sdk for 7z extraction.(使用LZMA SDK解压7z压缩包)
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.hzy3774:AndroidP7zip:v1.7.2'
}dependencies {
implementation 'com.hzy:un7zip:+'
}android {
...
defaultConfig {
...
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86'
}
}
}boolean extractFile(filePath, outPath, callback);
boolean extractAsset(assetManager, fileName, outPath, callback);
String getLzmaVersion();If you are using ProGuard you might need to add the following options:
-keep class com.hzy.lib7z.** { *; }