Add dynamic builkd for rome/imex

This commit is contained in:
Patrick Fic
2025-10-24 14:59:48 -07:00
parent bc22c823f9
commit 6b16f5fa5e
10 changed files with 61 additions and 25 deletions

View File

@@ -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;
};