forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Expensify#52703 from software-mansion-labs/war-in/…
…distinguish-between-staging-prod-env-upgrade-modal [No QA] Update force upgrade modal
- Loading branch information
Showing
7 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import {Linking, NativeModules} from 'react-native'; | ||
import CONST from '@src/CONST'; | ||
|
||
export default function updateApp() { | ||
export default function updateApp(isProduction: boolean) { | ||
if (isProduction) { | ||
Linking.openURL(CONST.APP_DOWNLOAD_LINKS.OLD_DOT_ANDROID); | ||
return; | ||
} | ||
Linking.openURL(NativeModules.HybridAppModule ? CONST.APP_DOWNLOAD_LINKS.OLD_DOT_ANDROID : CONST.APP_DOWNLOAD_LINKS.ANDROID); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import ELECTRON_EVENTS from '@desktop/ELECTRON_EVENTS'; | ||
|
||
export default function updateApp() { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
export default function updateApp(isProduction: boolean) { | ||
window.electron.send(ELECTRON_EVENTS.SILENT_UPDATE); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import {Linking, NativeModules} from 'react-native'; | ||
import CONST from '@src/CONST'; | ||
|
||
export default function updateApp() { | ||
export default function updateApp(isProduction: boolean) { | ||
if (isProduction) { | ||
Linking.openURL(CONST.APP_DOWNLOAD_LINKS.OLD_DOT_IOS); | ||
return; | ||
} | ||
Linking.openURL(NativeModules.HybridAppModule ? CONST.APP_DOWNLOAD_LINKS.OLD_DOT_IOS : CONST.APP_DOWNLOAD_LINKS.IOS); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/** | ||
* On web or mWeb we can simply refresh the page and the user should have the new version of the app downloaded. | ||
*/ | ||
export default function updateApp() { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
export default function updateApp(isProduction: boolean) { | ||
window.location.reload(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters