Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit c0d99ab

Browse files
committed
change var name
1 parent 9c416cd commit c0d99ab

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

CodePush.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,9 @@ async function checkForUpdate(deploymentKey = null) {
7070
* because we want to avoid having to install diff updates against the binary's
7171
* version, which we can't do yet on Android.
7272
*/
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) {
7976
if (update && update.updateAppVersion) {
8077
log("An update is available but it is targeting a newer binary version than you are currently running.");
8178
}

android/app/src/main/java/com/microsoft/codepush/react/CodePush.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ protected Void doInBackground(Object... params) {
424424
}
425425

426426
if (isRunningBinaryVersion) {
427-
currentPackage.putBoolean("isRunningBinaryVersion", isRunningBinaryVersion);
427+
currentPackage.putBoolean("_isDebugOnly", isRunningBinaryVersion);
428428
}
429429

430430
Boolean isPendingUpdate = false;

ios/CodePush/CodePush.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ - (void)savePendingUpdate:(NSString *)packageHash
484484
// This only matters in Debug builds. Since we do not clear "outdated" updates,
485485
// we need to indicate to the JS side that somehow we have a current update on
486486
// disk that is not actually running.
487-
[package setObject:@(isRunningBinaryVersion) forKey:@"isRunningBinaryVersion"];
487+
[package setObject:@(isRunningBinaryVersion) forKey:@"_isDebugOnly"];
488488
}
489489

490490
// Add the "isPending" virtual property to the package at this point, so that

0 commit comments

Comments
 (0)