mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-14 02:14:52 +08:00
remove InstallMode ON_NEXT_RESTART_OPPORTUNITY
This commit is contained in:
@@ -3,8 +3,7 @@ package com.microsoft.codepush.react;
|
||||
public enum CodePushInstallMode {
|
||||
IMMEDIATE(0),
|
||||
ON_NEXT_RESTART(1),
|
||||
ON_NEXT_RESUME(2),
|
||||
ON_NEXT_RESTART_OPPORTUNITY(3);
|
||||
ON_NEXT_RESUME(2);
|
||||
|
||||
private final int value;
|
||||
CodePushInstallMode(int value) {
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
|
||||
RCT_ENUM_CONVERTER(CodePushInstallMode, (@{ @"codePushInstallModeImmediate": @(CodePushInstallModeImmediate),
|
||||
@"codePushInstallModeOnNextRestart": @(CodePushInstallModeOnNextRestart),
|
||||
@"codePushInstallModeOnNextResume": @(CodePushInstallModeOnNextResume),
|
||||
@"codePushInstallModeOnNextRestartOpportunity": @(CodePushInstallModeOnNextRestartOpportunity) }),
|
||||
@"codePushInstallModeOnNextResume": @(CodePushInstallModeOnNextResume) }),
|
||||
CodePushInstallModeImmediate, // Default enum value
|
||||
integerValue)
|
||||
|
||||
|
||||
9
typings/react-native-code-push.d.ts
vendored
9
typings/react-native-code-push.d.ts
vendored
@@ -270,14 +270,7 @@ declare namespace CodePush {
|
||||
* Indicates that you want to install the update, but don't want to restart the
|
||||
* app until the next time the end user resumes it from the background.
|
||||
*/
|
||||
ON_NEXT_RESUME,
|
||||
|
||||
/**
|
||||
* Indicates that you want to install the update, and restart the app as soon as possible.
|
||||
* You can allow/forbid restarts with CodePush.allowRestart and CodePush.disallowRestart
|
||||
* respectively.
|
||||
*/
|
||||
ON_NEXT_RESTART_OPPORTUNITY
|
||||
ON_NEXT_RESUME
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
{
|
||||
Immediate,
|
||||
OnNextRestart,
|
||||
OnNextResume,
|
||||
OnNextRestartOpportunity
|
||||
OnNextResume
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user