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

Commit e5e09db

Browse files
committed
add constants
1 parent 0037147 commit e5e09db

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ 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());
378379

379380
constants.put("codePushUpdateStateRunning", CodePushUpdateState.RUNNING.getValue());
380381
constants.put("codePushUpdateStatePending", CodePushUpdateState.PENDING.getValue());

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

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

89
private final int value;
910
CodePushInstallMode(int value) {

ios/CodePush/CodePush.h

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

ios/CodePush/CodePush.m

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

220221
@"codePushUpdateStateRunning": @(CodePushUpdateStateRunning),
221222
@"codePushUpdateStatePending": @(CodePushUpdateStatePending),

0 commit comments

Comments
 (0)