mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-17 22:16:10 +08:00
extend new patchType: *.apk.hpatch & *.ppk.hpatch
This commit is contained in:
13
lib/index.js
13
lib/index.js
@@ -167,6 +167,19 @@ export async function downloadUpdate(options, eventListeners) {
|
||||
updateUrl: options.pdiffUrl,
|
||||
hash: options.hash,
|
||||
});
|
||||
}else if (options.hdiffUrl) {
|
||||
logger('downloading hdiff');
|
||||
await Pushy.downloadHPatchFromPpk({
|
||||
updateUrl: options.hdiffUrl,
|
||||
hash: options.hash,
|
||||
originHash: currentVersion,
|
||||
});
|
||||
} else if (options.phdiffUrl) {
|
||||
logger('downloading phdiff');
|
||||
await Pushy.downloadHPatchFromPackage({
|
||||
updateUrl: options.phdiffUrl,
|
||||
hash: options.hash,
|
||||
});
|
||||
}
|
||||
progressHandler && progressHandler.remove();
|
||||
return options.hash;
|
||||
|
Reference in New Issue
Block a user