You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: CodePush.js
+44-44Lines changed: 44 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -387,52 +387,52 @@ let CodePush;
387
387
// and therefore, it doesn't make sense initializing
388
388
// the JS interface when it wouldn't work anyways.
389
389
if(NativeCodePush){
390
-
CodePush={
391
-
AcquisitionSdk: Sdk,
392
-
checkForUpdate,
393
-
getConfiguration,
394
-
getCurrentPackage,
395
-
getUpdateMetadata,
396
-
log,
397
-
notifyApplicationReady,
398
-
restartApp,
399
-
restartApplication: restartApp,
400
-
setUpTestDependencies,
401
-
sync,
402
-
InstallMode: {
403
-
IMMEDIATE: NativeCodePush.codePushInstallModeImmediate,// Restart the app immediately
404
-
ON_NEXT_RESTART: NativeCodePush.codePushInstallModeOnNextRestart,// Don't artificially restart the app. Allow the update to be "picked up" on the next app restart
405
-
ON_NEXT_RESUME: NativeCodePush.codePushInstallModeOnNextResume// Restart the app the next time it is resumed from the background
406
-
},
407
-
SyncStatus: {
408
-
CHECKING_FOR_UPDATE: 0,
409
-
AWAITING_USER_ACTION: 1,
410
-
DOWNLOADING_PACKAGE: 2,
411
-
INSTALLING_UPDATE: 3,
412
-
UP_TO_DATE: 4,// The running app is up-to-date
413
-
UPDATE_IGNORED: 5,// The app had an optional update and the end-user chose to ignore it
414
-
UPDATE_INSTALLED: 6,// The app had an optional/mandatory update that was successfully downloaded and is about to be installed.
415
-
SYNC_IN_PROGRESS: 7,// There is an ongoing "sync" operation in progress.
mandatoryUpdateMessage: "An update is available that must be installed.",
428
-
optionalIgnoreButtonLabel: "Ignore",
429
-
optionalInstallButtonLabel: "Install",
430
-
optionalUpdateMessage: "An update is available. Would you like to install it?",
431
-
title: "Update available"
432
-
}
390
+
CodePush={
391
+
AcquisitionSdk: Sdk,
392
+
checkForUpdate,
393
+
getConfiguration,
394
+
getCurrentPackage,
395
+
getUpdateMetadata,
396
+
log,
397
+
notifyAppReady: notifyApplicationReady,
398
+
notifyApplicationReady,
399
+
restartApp,
400
+
setUpTestDependencies,
401
+
sync,
402
+
InstallMode: {
403
+
IMMEDIATE: NativeCodePush.codePushInstallModeImmediate,// Restart the app immediately
404
+
ON_NEXT_RESTART: NativeCodePush.codePushInstallModeOnNextRestart,// Don't artificially restart the app. Allow the update to be "picked up" on the next app restart
405
+
ON_NEXT_RESUME: NativeCodePush.codePushInstallModeOnNextResume// Restart the app the next time it is resumed from the background
406
+
},
407
+
SyncStatus: {
408
+
CHECKING_FOR_UPDATE: 0,
409
+
AWAITING_USER_ACTION: 1,
410
+
DOWNLOADING_PACKAGE: 2,
411
+
INSTALLING_UPDATE: 3,
412
+
UP_TO_DATE: 4,// The running app is up-to-date
413
+
UPDATE_IGNORED: 5,// The app had an optional update and the end-user chose to ignore it
414
+
UPDATE_INSTALLED: 6,// The app had an optional/mandatory update that was successfully downloaded and is about to be installed.
415
+
SYNC_IN_PROGRESS: 7,// There is an ongoing "sync" operation in progress.
0 commit comments