Skip to content

Simple jni binding for kuba--/zip lib to be used on Android.

License

Notifications You must be signed in to change notification settings

Aliucord/libzip

Repository files navigation

libzip

Simple jni binding for kuba--/zip lib to be used on Android.

Sample usage

        String data = "File content";

        Zip zip = new Zip(getFilesDir() + "/test.zip", 6, 'w');

        zip.openEntry("test.txt");
        byte[] bytes = data.getBytes();
        zip.writeEntry(bytes, bytes.length);
        zip.closeEntry();

        zip.close();

How to use

Use jitpack:

implementation("com.github.Aliucord:libzip:1.0.1")