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

Commit be3a74f

Browse files
committed
remove constant ON_NEXT_RESTART_OPPORTUNITY
1 parent 0745fe4 commit be3a74f

File tree

6 files changed

+4
-11
lines changed

6 files changed

+4
-11
lines changed

Examples/CodePushDemoApp/crossplatformdemo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let CodePushDemoApp = React.createClass({
1919
try {
2020
return await CodePush.sync(
2121
{
22-
installMode: CodePush.InstallMode.ON_NEXT_RESTART_OPPORTUNITY,
22+
installMode: CodePush.InstallMode.IMMEDIATE,
2323
},
2424
(syncStatus) => {
2525
switch(syncStatus) {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ public Map<String, Object> getConstants() {
375375
constants.put("codePushInstallModeImmediate", CodePushInstallMode.IMMEDIATE.getValue());
376376
constants.put("codePushInstallModeOnNextRestart", CodePushInstallMode.ON_NEXT_RESTART.getValue());
377377
constants.put("codePushInstallModeOnNextResume", CodePushInstallMode.ON_NEXT_RESUME.getValue());
378-
constants.put("codePushInstallModeOnNextRestartOpportunity", CodePushInstallMode.ON_NEXT_RESTART_OPPORTUNITY.getValue());
379378

380379
constants.put("codePushUpdateStateRunning", CodePushUpdateState.RUNNING.getValue());
381380
constants.put("codePushUpdateStatePending", CodePushUpdateState.PENDING.getValue());

ios/CodePush/CodePush.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ failCallback:(void (^)(NSError *err))failCallback;
146146
typedef NS_ENUM(NSInteger, CodePushInstallMode) {
147147
CodePushInstallModeImmediate,
148148
CodePushInstallModeOnNextRestart,
149-
CodePushInstallModeOnNextRestartOpportunity,
150149
CodePushInstallModeOnNextResume
151150
};
152151

ios/CodePush/CodePush.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ - (NSDictionary *)constantsToExport
216216
@"codePushInstallModeOnNextRestart":@(CodePushInstallModeOnNextRestart),
217217
@"codePushInstallModeImmediate": @(CodePushInstallModeImmediate),
218218
@"codePushInstallModeOnNextResume": @(CodePushInstallModeOnNextResume),
219-
@"codePushInstallModeOnNextRestartOpportunity": @(CodePushInstallModeOnNextRestartOpportunity),
220219

221220
@"codePushUpdateStateRunning": @(CodePushUpdateStateRunning),
222221
@"codePushUpdateStatePending": @(CodePushUpdateStatePending),

typings/react-native-code-push.d.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,20 +219,17 @@ declare namespace CodePush {
219219
function notifyAppReady(): Promise<void>;
220220

221221
/**
222-
* Allow CodePush to automatically restart the app if an update is installed with
223-
* InstallMode.ON_NEXT_RESTART_OPPORTUNITY.
222+
* Allow CodePush to restart the app.
224223
*/
225224
function allowRestart(): void;
226225

227226
/**
228-
* Forbid CodePush to automatically restart the app if an update is installed with
229-
* InstallMode.ON_NEXT_RESTART_OPPORTUNITY.
227+
* Forbid CodePush to restart the app.
230228
*/
231229
function disallowRestart(): void;
232230

233231
/**
234-
* Check if CodePush is allowed to automatically restart the app if an update is installed
235-
* with InstallMode.ON_NEXT_RESTART_OPPORTUNITY.
232+
* Check if CodePush is allowed to restart the app.
236233
*/
237234
function restartAllowed(): boolean;
238235

windows/CodePushNativeModule.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public override IReadOnlyDictionary<string, object> Constants
4040
{ "codePushInstallModeImmediate", InstallMode.Immediate },
4141
{ "codePushInstallModeOnNextResume", InstallMode.OnNextResume },
4242
{ "codePushInstallModeOnNextRestart", InstallMode.OnNextRestart },
43-
{ "codePushInstallModeOnNextRestartOpportunity", InstallMode.OnNextRestartOpportunity },
4443
{ "codePushUpdateStateRunning", UpdateState.Running },
4544
{ "codePushUpdateStatePending", UpdateState.Pending },
4645
{ "codePushUpdateStateLatest", UpdateState.Lastest },

0 commit comments

Comments
 (0)