Skip to content

Commit 06fc213

Browse files
committed
prevent duplicated apk download
1 parent a52d18d commit 06fc213

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update",
3-
"version": "10.26.3",
3+
"version": "10.26.4",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"scripts": {

src/provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export const UpdateProvider = ({
181181
setUpdateInfo(info);
182182
if (info.expired) {
183183
const { downloadUrl } = info;
184-
if (downloadUrl) {
184+
if (downloadUrl && Pushy.apkStatus === null) {
185185
if (options.updateStrategy === 'silentAndNow') {
186186
if (Platform.OS === 'android' && downloadUrl.endsWith('.apk')) {
187187
downloadAndInstallApk(downloadUrl);

0 commit comments

Comments
 (0)