mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 07:10:36 +08:00
clear updates when app version changes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user