diff --git a/android/app/src/main/java/com/microsoft/codepush/react/CodePushInstallMode.java b/android/app/src/main/java/com/microsoft/codepush/react/CodePushInstallMode.java index 097219d..9afe0f5 100644 --- a/android/app/src/main/java/com/microsoft/codepush/react/CodePushInstallMode.java +++ b/android/app/src/main/java/com/microsoft/codepush/react/CodePushInstallMode.java @@ -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) { diff --git a/ios/CodePush/RCTConvert+CodePushInstallMode.m b/ios/CodePush/RCTConvert+CodePushInstallMode.m index 0f8f2ba..6ef74a8 100644 --- a/ios/CodePush/RCTConvert+CodePushInstallMode.m +++ b/ios/CodePush/RCTConvert+CodePushInstallMode.m @@ -7,8 +7,7 @@ RCT_ENUM_CONVERTER(CodePushInstallMode, (@{ @"codePushInstallModeImmediate": @(CodePushInstallModeImmediate), @"codePushInstallModeOnNextRestart": @(CodePushInstallModeOnNextRestart), - @"codePushInstallModeOnNextResume": @(CodePushInstallModeOnNextResume), - @"codePushInstallModeOnNextRestartOpportunity": @(CodePushInstallModeOnNextRestartOpportunity) }), + @"codePushInstallModeOnNextResume": @(CodePushInstallModeOnNextResume) }), CodePushInstallModeImmediate, // Default enum value integerValue) diff --git a/typings/react-native-code-push.d.ts b/typings/react-native-code-push.d.ts index 8d631c2..32ee1c2 100644 --- a/typings/react-native-code-push.d.ts +++ b/typings/react-native-code-push.d.ts @@ -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 } /** diff --git a/windows/InstallMode.cs b/windows/InstallMode.cs index 11e2fb8..c407127 100644 --- a/windows/InstallMode.cs +++ b/windows/InstallMode.cs @@ -4,7 +4,6 @@ { Immediate, OnNextRestart, - OnNextResume, - OnNextRestartOpportunity + OnNextResume } } \ No newline at end of file