Skip to content

Commit

Permalink
Merge pull request #46194 from software-mansion-labs/fix/update-app-l…
Browse files Browse the repository at this point in the history
…inks

[HybridApp] Fix links to app stores on HybridApp
  • Loading branch information
AndrewGable authored Jul 25, 2024
2 parents 73f9959 + 43c6720 commit 2dd7654
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ const CONST = {
ANDROID: `https://play.google.com/store/apps/details?id=${ANDROID_PACKAGE_NAME}`,
IOS: 'https://apps.apple.com/us/app/expensify-cash/id1530278510',
DESKTOP: `${ACTIVE_EXPENSIFY_URL}NewExpensify.dmg`,
OLD_DOT_ANDROID: 'https://play.google.com/store/apps/details?id=org.me.mobiexpensifyg&hl=en_US&pli=1',
OLD_DOT_IOS: 'https://apps.apple.com/us/app/expensify-expense-tracker/id471713959',
},
DATE: {
SQL_DATE_TIME: 'YYYY-MM-DD HH:mm:ss',
Expand Down
4 changes: 2 additions & 2 deletions src/libs/actions/AppUpdate/updateApp/index.android.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Linking} from 'react-native';
import {Linking, NativeModules} from 'react-native';
import CONST from '@src/CONST';

export default function updateApp() {
Linking.openURL(CONST.APP_DOWNLOAD_LINKS.ANDROID);
Linking.openURL(NativeModules.HybridAppModule ? CONST.APP_DOWNLOAD_LINKS.OLD_DOT_ANDROID : CONST.APP_DOWNLOAD_LINKS.ANDROID);
}
4 changes: 2 additions & 2 deletions src/libs/actions/AppUpdate/updateApp/index.ios.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Linking} from 'react-native';
import {Linking, NativeModules} from 'react-native';
import CONST from '@src/CONST';

export default function updateApp() {
Linking.openURL(CONST.APP_DOWNLOAD_LINKS.IOS);
Linking.openURL(NativeModules.HybridAppModule ? CONST.APP_DOWNLOAD_LINKS.OLD_DOT_IOS : CONST.APP_DOWNLOAD_LINKS.IOS);
}

0 comments on commit 2dd7654

Please sign in to comment.