Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
remove constant ON_NEXT_RESTART_OPPORTUNITY
Browse files Browse the repository at this point in the history
  • Loading branch information
dbasedow committed May 22, 2016
1 parent 0745fe4 commit be3a74f
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Examples/CodePushDemoApp/crossplatformdemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let CodePushDemoApp = React.createClass({
try {
return await CodePush.sync(
{
installMode: CodePush.InstallMode.ON_NEXT_RESTART_OPPORTUNITY,
installMode: CodePush.InstallMode.IMMEDIATE,
},
(syncStatus) => {
switch(syncStatus) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ public Map<String, Object> getConstants() {
constants.put("codePushInstallModeImmediate", CodePushInstallMode.IMMEDIATE.getValue());
constants.put("codePushInstallModeOnNextRestart", CodePushInstallMode.ON_NEXT_RESTART.getValue());
constants.put("codePushInstallModeOnNextResume", CodePushInstallMode.ON_NEXT_RESUME.getValue());
constants.put("codePushInstallModeOnNextRestartOpportunity", CodePushInstallMode.ON_NEXT_RESTART_OPPORTUNITY.getValue());

constants.put("codePushUpdateStateRunning", CodePushUpdateState.RUNNING.getValue());
constants.put("codePushUpdateStatePending", CodePushUpdateState.PENDING.getValue());
Expand Down
1 change: 0 additions & 1 deletion ios/CodePush/CodePush.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ failCallback:(void (^)(NSError *err))failCallback;
typedef NS_ENUM(NSInteger, CodePushInstallMode) {
CodePushInstallModeImmediate,
CodePushInstallModeOnNextRestart,
CodePushInstallModeOnNextRestartOpportunity,
CodePushInstallModeOnNextResume
};

Expand Down
1 change: 0 additions & 1 deletion ios/CodePush/CodePush.m
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ - (NSDictionary *)constantsToExport
@"codePushInstallModeOnNextRestart":@(CodePushInstallModeOnNextRestart),
@"codePushInstallModeImmediate": @(CodePushInstallModeImmediate),
@"codePushInstallModeOnNextResume": @(CodePushInstallModeOnNextResume),
@"codePushInstallModeOnNextRestartOpportunity": @(CodePushInstallModeOnNextRestartOpportunity),

@"codePushUpdateStateRunning": @(CodePushUpdateStateRunning),
@"codePushUpdateStatePending": @(CodePushUpdateStatePending),
Expand Down
9 changes: 3 additions & 6 deletions typings/react-native-code-push.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,20 +219,17 @@ declare namespace CodePush {
function notifyAppReady(): Promise<void>;

/**
* Allow CodePush to automatically restart the app if an update is installed with
* InstallMode.ON_NEXT_RESTART_OPPORTUNITY.
* Allow CodePush to restart the app.
*/
function allowRestart(): void;

/**
* Forbid CodePush to automatically restart the app if an update is installed with
* InstallMode.ON_NEXT_RESTART_OPPORTUNITY.
* Forbid CodePush to restart the app.
*/
function disallowRestart(): void;

/**
* Check if CodePush is allowed to automatically restart the app if an update is installed
* with InstallMode.ON_NEXT_RESTART_OPPORTUNITY.
* Check if CodePush is allowed to restart the app.
*/
function restartAllowed(): boolean;

Expand Down
1 change: 0 additions & 1 deletion windows/CodePushNativeModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public override IReadOnlyDictionary<string, object> Constants
{ "codePushInstallModeImmediate", InstallMode.Immediate },
{ "codePushInstallModeOnNextResume", InstallMode.OnNextResume },
{ "codePushInstallModeOnNextRestart", InstallMode.OnNextRestart },
{ "codePushInstallModeOnNextRestartOpportunity", InstallMode.OnNextRestartOpportunity },
{ "codePushUpdateStateRunning", UpdateState.Running },
{ "codePushUpdateStatePending", UpdateState.Pending },
{ "codePushUpdateStateLatest", UpdateState.Lastest },
Expand Down

0 comments on commit be3a74f

Please sign in to comment.