Initial consolidatio of rome and imex versions.
This commit is contained in:
57
app.config.js
Normal file
57
app.config.js
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
const IS_ROME = process.env.APP_VARIANT === 'ROME';
|
||||
|
||||
export default ({ config }) => {
|
||||
//console.log("Expo", JSON.stringify(config, null, 2))
|
||||
return ({
|
||||
...config,
|
||||
name: IS_ROME ? "Rome Mobile" : "ImEX Mobile",
|
||||
slug: IS_ROME ? "rome-mobile" : "imexmobile",
|
||||
extra: {
|
||||
...config.extra,
|
||||
eas: {
|
||||
...config.extra.eas,
|
||||
projectId: IS_ROME ? "df105e21-a07f-4425-af10-2200a7704a48" : "ffe01f3a-d507-4698-82cd-da1f1cad450b"
|
||||
}
|
||||
},
|
||||
icon: IS_ROME ? "./assets/RomeIcon.png" : "./assets/logo192noa.png",
|
||||
ios: {
|
||||
...config.ios,
|
||||
bundleIdentifier: IS_ROME ? "com.rome.mobile" : "com.imex.imexmobile"
|
||||
},
|
||||
android: {
|
||||
...config.android,
|
||||
package: IS_ROME ? "com.rome.mobile" : "com.imex.imexmobile"
|
||||
},
|
||||
splash: {
|
||||
...config.splash,
|
||||
image: IS_ROME ? "./assets/RomeSplash.png" : "./assets/ImEXSplash.png" //Make sure these exist
|
||||
},
|
||||
notification: {
|
||||
...config.notification,
|
||||
icon: IS_ROME ? "./assets/RomeNotificationIcon.png" : "./assets/ImEXNotificationIcon.png" // Make sure these exist
|
||||
},
|
||||
updates: {
|
||||
...config.updates,
|
||||
url: IS_ROME ? "https://u.expo.dev/df105e21-a07f-4425-af10-2200a7704a48" : "https://u.expo.dev/ffe01f3a-d507-4698-82cd-da1f1cad450b"
|
||||
},
|
||||
web: {
|
||||
...config.web,
|
||||
favicon: IS_ROME ? "./assets/RomeIcon.png" : "./assets/ImEXlogo192noa.png",
|
||||
config: {
|
||||
...config.web.config,
|
||||
firebase: {
|
||||
...config.web.config.firebase,
|
||||
"apiKey": IS_ROME ? "AIzaSyAuLQR9SV5LsVxjU8wh9hvFLdhcAHU6cxE" : "AIzaSyDSezy-jGJreo7ulgpLdlpOwAOrgcaEkhU",
|
||||
"authDomain": IS_ROME ? "rome-prod-1.firebaseapp.com" : "imex-prod.firebaseapp.com",
|
||||
"projectId": IS_ROME ? "rome-prod-1" : "imex-prod",
|
||||
"storageBucket": IS_ROME ? "rome-prod-1.appspot.com" : "imex-prod.appspot.com",
|
||||
"messagingSenderId": IS_ROME ? "147786367145" : "253497221485",
|
||||
"appId": IS_ROME ? "1:147786367145:web:9d4cba68071c3f29a8a9b8" : "1:253497221485:web:9b65736a635a45ce227a64",
|
||||
"measurementId": IS_ROME ? "G-G8Z9DRHTZS" : "G-96694D66L2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
};
|
||||
Reference in New Issue
Block a user