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

Commit 0745fe4

Browse files
committed
remove InstallMode ON_NEXT_RESTART_OPPORTUNITY
1 parent d8e6d30 commit 0745fe4

File tree

4 files changed

+4
-14
lines changed

4 files changed

+4
-14
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
public enum CodePushInstallMode {
44
IMMEDIATE(0),
55
ON_NEXT_RESTART(1),
6-
ON_NEXT_RESUME(2),
7-
ON_NEXT_RESTART_OPPORTUNITY(3);
6+
ON_NEXT_RESUME(2);
87

98
private final int value;
109
CodePushInstallMode(int value) {

ios/CodePush/RCTConvert+CodePushInstallMode.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ @implementation RCTConvert (CodePushInstallMode)
77

88
RCT_ENUM_CONVERTER(CodePushInstallMode, (@{ @"codePushInstallModeImmediate": @(CodePushInstallModeImmediate),
99
@"codePushInstallModeOnNextRestart": @(CodePushInstallModeOnNextRestart),
10-
@"codePushInstallModeOnNextResume": @(CodePushInstallModeOnNextResume),
11-
@"codePushInstallModeOnNextRestartOpportunity": @(CodePushInstallModeOnNextRestartOpportunity) }),
10+
@"codePushInstallModeOnNextResume": @(CodePushInstallModeOnNextResume) }),
1211
CodePushInstallModeImmediate, // Default enum value
1312
integerValue)
1413

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,7 @@ declare namespace CodePush {
270270
* Indicates that you want to install the update, but don't want to restart the
271271
* app until the next time the end user resumes it from the background.
272272
*/
273-
ON_NEXT_RESUME,
274-
275-
/**
276-
* Indicates that you want to install the update, and restart the app as soon as possible.
277-
* You can allow/forbid restarts with CodePush.allowRestart and CodePush.disallowRestart
278-
* respectively.
279-
*/
280-
ON_NEXT_RESTART_OPPORTUNITY
273+
ON_NEXT_RESUME
281274
}
282275

283276
/**

windows/InstallMode.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ enum InstallMode
44
{
55
Immediate,
66
OnNextRestart,
7-
OnNextResume,
8-
OnNextRestartOpportunity
7+
OnNextResume
98
}
109
}

0 commit comments

Comments
 (0)