Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 0cddbeb

Browse files
committed
Drop package if there is a new native app version
1 parent f0fcda6 commit 0cddbeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CodePush.ios.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ function checkForUpdate() {
7676
sdk.queryUpdateWithCurrentPackage(queryPackage, (err, update) => {
7777
if (err) return reject(err);
7878
if (update) {
79-
resolve(extend({}, update, packageMixins.remote));
79+
// There is an update available for a different native app version. In the current version of this plugin, we treat that as no update.
80+
if (update.updateAppVersion) resolve(false);
81+
else resolve(extend({}, update, packageMixins.remote));
8082
} else {
8183
resolve(update);
8284
}

0 commit comments

Comments
 (0)