clear updates when app version changes

This commit is contained in:
Geoffrey Goh
2016-03-07 18:34:45 -08:00
parent 9eb5131721
commit 89d0ffaeb8
3 changed files with 8 additions and 3 deletions

View File

@@ -162,7 +162,7 @@ public class CodePush {
} else {
// The binary version is newer.
didUpdate = false;
if (!this.isDebugMode) {
if (!this.isDebugMode || !this.appVersion.equals(packageAppVersion)) {
this.clearUpdates();
}