From 4332931e12151640b2d80b85b143c0163c34e8c6 Mon Sep 17 00:00:00 2001 From: Rajat Parashar Date: Wed, 12 Jan 2022 01:09:38 +0530 Subject: [PATCH 1/2] Fix Download links --- src/CONST.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/CONST.js b/src/CONST.js index 33a4f3add359..6081b2f1129a 100755 --- a/src/CONST.js +++ b/src/CONST.js @@ -1,5 +1,8 @@ +import lodashGet from 'lodash/get'; +import Config from 'react-native-config'; + const CLOUDFRONT_URL = 'https://d2k5nsl2zxldvw.cloudfront.net'; -const NEW_EXPENSIFY_URL = 'https://new.expensify.com'; +const expensifyCashURL = lodashGet(Config, 'EXPENSIFY_URL_CASH', 'https://new.expensify.com'); const PLATFORM_OS_MACOS = 'Mac OS'; const ANDROID_PACKAGE_NAME = 'com.expensify.chat'; @@ -13,7 +16,7 @@ const CONST = { APP_DOWNLOAD_LINKS: { ANDROID: `https://play.google.com/store/apps/details?id=${ANDROID_PACKAGE_NAME}`, IOS: 'https://apps.apple.com/us/app/expensify-cash/id1530278510', - DESKTOP: `${NEW_EXPENSIFY_URL}/NewExpensify.dmg`, + DESKTOP: `${expensifyCashURL}/NewExpensify.dmg`, }, DATE: { MOMENT_FORMAT_STRING: 'YYYY-MM-DD', @@ -194,7 +197,7 @@ const CONST = { CFPB_PREPAID_URL: 'https://cfpb.gov/prepaid', STAGING_SECURE_URL: 'https://staging-secure.expensify.com/', NEWDOT: 'new.expensify.com', - NEW_EXPENSIFY_URL, + NEW_EXPENSIFY_URL: 'https://new.expensify.com', STAGING_NEW_EXPENSIFY_URL: 'https://staging.new.expensify.com', OPTION_TYPE: { REPORT: 'report', From 0e435b5c2cb5fa2614e8c5351f3890d8af8b7e9c Mon Sep 17 00:00:00 2001 From: Rajat Parashar Date: Wed, 12 Jan 2022 01:19:04 +0530 Subject: [PATCH 2/2] rename --- src/CONST.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CONST.js b/src/CONST.js index 6081b2f1129a..0e012d221804 100755 --- a/src/CONST.js +++ b/src/CONST.js @@ -2,7 +2,7 @@ import lodashGet from 'lodash/get'; import Config from 'react-native-config'; const CLOUDFRONT_URL = 'https://d2k5nsl2zxldvw.cloudfront.net'; -const expensifyCashURL = lodashGet(Config, 'EXPENSIFY_URL_CASH', 'https://new.expensify.com'); +const ACTIVE_ENVIRONMENT_NEW_EXPENSIFY_URL = lodashGet(Config, 'EXPENSIFY_URL_CASH', 'https://new.expensify.com'); const PLATFORM_OS_MACOS = 'Mac OS'; const ANDROID_PACKAGE_NAME = 'com.expensify.chat'; @@ -16,7 +16,7 @@ const CONST = { APP_DOWNLOAD_LINKS: { ANDROID: `https://play.google.com/store/apps/details?id=${ANDROID_PACKAGE_NAME}`, IOS: 'https://apps.apple.com/us/app/expensify-cash/id1530278510', - DESKTOP: `${expensifyCashURL}/NewExpensify.dmg`, + DESKTOP: `${ACTIVE_ENVIRONMENT_NEW_EXPENSIFY_URL}/NewExpensify.dmg`, }, DATE: { MOMENT_FORMAT_STRING: 'YYYY-MM-DD',