From 6b16f5fa5e86220e31497bb2487e96b61038fdf1 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 24 Oct 2025 14:59:48 -0700 Subject: [PATCH] Add dynamic builkd for rome/imex --- app.config.js | 8 ++++-- assets/{ => images}/RomeOnlineIcon.png | Bin babel-translations.babel | 23 ++++++++++++++- components/global-search/global-search.jsx | 2 +- components/sign-in/sign-in.jsx | 32 ++++++++++++--------- env.js | 6 ++-- package.json | 4 +-- translations/en-US/common.json | 5 ++-- translations/es-MX/common.json | 3 +- translations/fr-CA/common.json | 3 +- 10 files changed, 61 insertions(+), 25 deletions(-) rename assets/{ => images}/RomeOnlineIcon.png (100%) diff --git a/app.config.js b/app.config.js index 707b774..43a6812 100644 --- a/app.config.js +++ b/app.config.js @@ -2,13 +2,14 @@ const IS_ROME = process.env.APP_VARIANT === 'ROME'; export default ({ config }) => { - //console.log("Expo", JSON.stringify(config, null, 2)) - return ({ + + const newConfig = ({ ...config, name: IS_ROME ? "Rome Mobile" : "ImEX Mobile", slug: IS_ROME ? "rome-mobile" : "imexmobile", extra: { ...config.extra, + appVariant: process.env.APP_VARIANT || 'IMEX', eas: { ...config.extra.eas, projectId: IS_ROME ? "df105e21-a07f-4425-af10-2200a7704a48" : "ffe01f3a-d507-4698-82cd-da1f1cad450b" @@ -54,4 +55,7 @@ export default ({ config }) => { } }) + + console.log("New Expo Config:", JSON.stringify(newConfig, null, 2)); + return newConfig; }; \ No newline at end of file diff --git a/assets/RomeOnlineIcon.png b/assets/images/RomeOnlineIcon.png similarity index 100% rename from assets/RomeOnlineIcon.png rename to assets/images/RomeOnlineIcon.png diff --git a/babel-translations.babel b/babel-translations.babel index 3fd190c..77e888e 100644 --- a/babel-translations.babel +++ b/babel-translations.babel @@ -1,4 +1,4 @@ - +