mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-19 18:13:46 +08:00
Drop package if there is a new native app version
This commit is contained in:
@@ -76,7 +76,9 @@ function checkForUpdate() {
|
||||
sdk.queryUpdateWithCurrentPackage(queryPackage, (err, update) => {
|
||||
if (err) return reject(err);
|
||||
if (update) {
|
||||
resolve(extend({}, update, packageMixins.remote));
|
||||
// There is an update available for a different native app version. In the current version of this plugin, we treat that as no update.
|
||||
if (update.updateAppVersion) resolve(false);
|
||||
else resolve(extend({}, update, packageMixins.remote));
|
||||
} else {
|
||||
resolve(update);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user