remove InstallMode ON_NEXT_RESTART_OPPORTUNITY

This commit is contained in:
danielbasedow
2016-05-22 18:42:06 +02:00
parent d8e6d302a1
commit 0745fe407e
4 changed files with 4 additions and 14 deletions

View File

@@ -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) {

View File

@@ -7,8 +7,7 @@
RCT_ENUM_CONVERTER(CodePushInstallMode, (@{ @"codePushInstallModeImmediate": @(CodePushInstallModeImmediate),
@"codePushInstallModeOnNextRestart": @(CodePushInstallModeOnNextRestart),
@"codePushInstallModeOnNextResume": @(CodePushInstallModeOnNextResume),
@"codePushInstallModeOnNextRestartOpportunity": @(CodePushInstallModeOnNextRestartOpportunity) }),
@"codePushInstallModeOnNextResume": @(CodePushInstallModeOnNextResume) }),
CodePushInstallModeImmediate, // Default enum value
integerValue)

View File

@@ -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
}
/**

View File

@@ -4,7 +4,6 @@
{
Immediate,
OnNextRestart,
OnNextResume,
OnNextRestartOpportunity
OnNextResume
}
}