hzy3774 / Androidun7zip
Licence: apache-2.0
A simple android ndk library used to simply extract lzma 7z files.
Stars: ✭ 270
Programming Languages
c
50402 projects - #5 most used programming language
Labels
AndroidUn7zip(安卓7zip解压)
A simple library with lzma sdk for 7z extraction.(使用LZMA SDK解压7z压缩包)
Introduction
- 官方网站:https://www.7-zip.org/sdk.html
- 7z is the new archive format, providing high compression ratio.
Begin To Use
- Add gradle dependencie:
dependencies {
implementation 'com.hzy:un7zip:+'
}
- Or just download the aar here
- If you want to add some abi filters
android {
...
defaultConfig {
...
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86'
}
}
}
Java API:
boolean extractFile(filePath, outPath, callback);
boolean extractAsset(assetManager, fileName, outPath, callback);
String getLzmaVersion();
ProGuard
If you are using ProGuard you might need to add the following options:
-keep class com.hzy.lib7z.** { *; }
Fetures
- easily extract 7z from file
- directly extract 7z from assets
- unicode file names is available
- add extract callbacks
Screenshot
Thanks To
- danhantao offered X86 compiled(修复了X86编译问题)
- ransj offered the way to extract 7z file from assets directly(添加了直接从assets解压的功能)
About Me
- GitHub: https://huzongyao.github.io/
- ITEye博客:https://hzy3774.iteye.com/
- 新浪微博: https://weibo.com/hzy3774
Contact To Me
- QQ: 377406997
- Gmail: [email protected]
- Foxmail: [email protected]
- WeChat: hzy3774
Others
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].