Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 1.05 KB

README.md

File metadata and controls

57 lines (45 loc) · 1.05 KB

bspatch tools for android

please see ./outputs/

bsdiff

download bsdiff

    https://github.com/mendsley/bsdiff

make diff

    make
  • make bugs
    http://www.cnblogs.com/lping/p/5833090.html

how to use on mac

    bsdiff oldfile newfile patchfile
    bspatch oldfile newfile patchfile

how to use on android

// maven
implementation 'com.codesdancing.libraries:library-bspatch:0.0.3'
try {
    // first param : base zip file path
    // second param: dest zip file path
    // third  param: patch file path
    val result = BSPatchUtil.bspatch(baseBundleHelper.getBaseZipFile().absolutePath, tempZipFile.absolutePath, getTempPatchFile().absolutePath)
    
    if (result == 0) {
        // success
    }else {
        // failure
    }
    
} catch (e: Exception) {
    // failure
}

how to use on ios

https://github.com/krmao/bspatch-ios

compile project