Skip to content

EIDU/archive-patcher-android

Repository files navigation

archive-patcher-android

Maven Central

Purpose

This library exists because archive-patcher's patch application (FileByFileV1DeltaApplier) does not produce the expected results on Android 11 and newer, due to changed behaviour of java.util.zip.Deflater in those Android versions. The way this library addresses the issue is by shipping binaries of (unmodified) zlib 1.2.13, and implementing an com.eidu.zip.AndroidDeflater that utilizes the bundled zlib.

Usage

To add the Gradle dependency:

repositories {
    mavenCentral()
}

dependencies {
    implementation("com.eidu:archive-patcher-android:<version>")
}

Use com.eidu.archivepatcher.AndroidFileByFileV1DeltaApplier as a drop-in replacement for archive-patcher's com.google.archivepatcher.applier.FileByFileV1DeltaApplier:

new AndroidFileByFileV1DeltaApplier()
    .applyDelta(
        baseFile,
        patchInputStream,
        resultOutputStream
    );

Support

Please contact EIDU at [email protected] if you need help.

Contributing

We are excited about your contributions. See our current contribution guidelines to get started.

License

Since this library contains modified sources that are originally licensed under GPLv2, this library is as well. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages