Skip to content

Commit 26c7c70

Browse files
committed
add logic to support android aab package hot update
1 parent fd46baf commit 26c7c70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bundle.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ async function diffFromPPK(origin: string, next: string, output: string) {
668668
addEntry(base);
669669
}
670670
copies[entry.fileName] = originMap[entry.crc32];
671+
copies[entry.crc32] = entry.fileName;
671672
return;
672673
}
673674

@@ -792,6 +793,7 @@ async function diffFromPackage(
792793
// If moved from other place
793794
if (originMap[entry.crc32]) {
794795
copies[entry.fileName] = originMap[entry.crc32];
796+
copies[entry.crc32] = entry.fileName;
795797
return;
796798
}
797799

0 commit comments

Comments
 (0)