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

Commit 7dd1b47

Browse files
committed
set to true directly
1 parent 93c47b4 commit 7dd1b47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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("_isDebugOnly", isRunningBinaryVersion);
427+
currentPackage.putBoolean("_isDebugOnly", true);
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:@"_isDebugOnly"];
487+
[package setObject:@(YES) forKey:@"_isDebugOnly"];
488488
}
489489

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

0 commit comments

Comments
 (0)