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.
@@ -154,11 +156,6 @@ function getPromisifiedSdk(requestFetchAdapter, config) {
154
156
returnsdk;
155
157
}
156
158
157
-
/* Logs messages to console with the [CodePush] prefix */
158
-
functionlog(message){
159
-
console.log(`[CodePush] ${message}`)
160
-
}
161
-
162
159
// This ensures that notifyApplicationReadyInternal is only called once
163
160
// in the lifetime of this module instance.
164
161
constnotifyApplicationReady=(()=>{
@@ -213,10 +210,6 @@ async function tryReportStatus(resumeListener) {
213
210
}
214
211
}
215
212
216
-
functionrestartApp(onlyIfUpdateIsPending=false){
217
-
NativeCodePush.restartApp(onlyIfUpdateIsPending);
218
-
}
219
-
220
213
vartestConfig;
221
214
222
215
// This function is only used for tests. Replaces the default SDK, configuration and native bridge
@@ -409,9 +402,11 @@ if (NativeCodePush) {
409
402
log,
410
403
notifyAppReady: notifyApplicationReady,
411
404
notifyApplicationReady,
412
-
restartApp,
405
+
restartApp: RestartManager.restartApp,
413
406
setUpTestDependencies,
414
407
sync,
408
+
disallowRestart: RestartManager.disallow,
409
+
allowRestart: RestartManager.allow,
415
410
InstallMode: {
416
411
IMMEDIATE: NativeCodePush.codePushInstallModeImmediate,// Restart the app immediately
417
412
ON_NEXT_RESTART: NativeCodePush.codePushInstallModeOnNextRestart,// Don't artificially restart the app. Allow the update to be "picked up" on the next app restart
0 commit comments