Drop package if there is a new native app version

This commit is contained in:
Geoffrey Goh
2015-10-23 13:27:26 -07:00
parent f0fcda6fc1
commit 0cddbeb557

View File

@@ -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);
}