Skip to content

Commit

Permalink
Merge pull request #3 from bekk/codepush_config
Browse files Browse the repository at this point in the history
✨ Juster codepush config
  • Loading branch information
leiferikbjorkli authored Sep 4, 2023
2 parents cefa491 + 4ccccc9 commit 0296d64
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions app/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@ function Main() {
}

const codePushOptions = {
checkFrequency: codePush.CheckFrequency.ON_APP_RESUME,
installMode: codePush.InstallMode.ON_NEXT_RESUME,
mandatoryInstallMode: codePush.InstallMode.IMMEDIATE,
minimumBackgroundDuration: 60 * 10, // App need to be in background for 10 min
rollbackRetryOptions: {
delayInHours: 3,
maxRetryAttempts: 3,
},
updateDialog: true,
installMode: codePush.InstallMode.IMMEDIATE,
};

const CodePushEnabledMain = () => codePush(codePushOptions)(Main);
Expand Down

0 comments on commit 0296d64

Please sign in to comment.