/AndroidUn7zip

A simple android ndk library used to simply extract lzma 7z files.

Primary LanguageCApache License 2.0Apache-2.0

AndroidUn7zip(安卓7zip解压)

A simple library with lzma sdk for 7z extraction.

Introduction

Begin To Use

dependencies {
    compile 'com.hzy:un7zip:1.3.0'
}

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

image

Thanks To

  • danhantao offered X86 compiled(修复了X86编译问题)
  • ransj offered the way to extract 7z file from assets directly(添加了直接从assets解压的功能)

About Me

Contact To Me