Used for Android platform to generate difference package patch of two files or use version file and patch to synthesize a new file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.zhanglibo1993:bsdiff:main-f5b622065a-1'
}
oldPath is the original file path, newPath is the current latest file path, diffPath is the patch file path to be generated soon
oldPath is the original file path, newPath is the file path to be generated, diffPath is the patch file path, and size is the number of bytes of the latest file.