This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
android/app/src/main/java/com/microsoft/codepush/react Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,9 @@ async function checkForUpdate(deploymentKey = null) {
70
70
* because we want to avoid having to install diff updates against the binary's
71
71
* version, which we can't do yet on Android.
72
72
*/
73
- if (
74
- ! update ||
75
- update . updateAppVersion ||
76
- localPackage && ( update . packageHash === localPackage . packageHash ) ||
77
- ( ! localPackage || localPackage . isRunningBinaryVersion ) && config . packageHash === update . packageHash
78
- ) {
73
+ if ( ! update || update . updateAppVersion ||
74
+ localPackage && ( update . packageHash === localPackage . packageHash ) ||
75
+ ( ! localPackage || localPackage . _isDebugOnly ) && config . packageHash === update . packageHash ) {
79
76
if ( update && update . updateAppVersion ) {
80
77
log ( "An update is available but it is targeting a newer binary version than you are currently running." ) ;
81
78
}
Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ protected Void doInBackground(Object... params) {
424
424
}
425
425
426
426
if (isRunningBinaryVersion ) {
427
- currentPackage .putBoolean ("isRunningBinaryVersion " , isRunningBinaryVersion );
427
+ currentPackage .putBoolean ("_isDebugOnly " , isRunningBinaryVersion );
428
428
}
429
429
430
430
Boolean isPendingUpdate = false ;
Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ - (void)savePendingUpdate:(NSString *)packageHash
484
484
// This only matters in Debug builds. Since we do not clear "outdated" updates,
485
485
// we need to indicate to the JS side that somehow we have a current update on
486
486
// disk that is not actually running.
487
- [package setObject: @(isRunningBinaryVersion) forKey: @" isRunningBinaryVersion " ];
487
+ [package setObject: @(isRunningBinaryVersion) forKey: @" _isDebugOnly " ];
488
488
}
489
489
490
490
// Add the "isPending" virtual property to the package at this point, so that
You can’t perform that action at this time.
0 commit comments