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
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -214,10 +214,6 @@ async function tryReportStatus(resumeListener) {
214
214
}
215
215
}
216
216
217
-
functionrestartApp(onlyIfUpdateIsPending=false){
218
-
NativeCodePush.restartApp(onlyIfUpdateIsPending);
219
-
}
220
-
221
217
vartestConfig;
222
218
223
219
// This function is only used for tests. Replaces the default SDK, configuration and native bridge
@@ -410,7 +406,7 @@ if (NativeCodePush) {
410
406
log,
411
407
notifyAppReady: notifyApplicationReady,
412
408
notifyApplicationReady,
413
-
restartApp,
409
+
restartApp: RestartManager.restartApp,
414
410
setUpTestDependencies,
415
411
sync,
416
412
disallowRestart: RestartManager.disallow,
@@ -420,7 +416,6 @@ if (NativeCodePush) {
420
416
IMMEDIATE: NativeCodePush.codePushInstallModeImmediate,// Restart the app immediately
421
417
ON_NEXT_RESTART: NativeCodePush.codePushInstallModeOnNextRestart,// Don't artificially restart the app. Allow the update to be "picked up" on the next app restart
422
418
ON_NEXT_RESUME: NativeCodePush.codePushInstallModeOnNextResume,// Restart the app the next time it is resumed from the background
0 commit comments