import Constants from "expo-constants"; import * as Updates from "expo-updates"; const ENV = { test: { DEMO_MODE: false, API_URL: "https://api.test.imex.online", uri: "https://db.test.bodyshop.app/v1/graphql", wsuri: "wss://db.test.bodyshop.app/v1/graphql", SPLIT_API: "ts615lqgnmk84thn72uk18uu5pgce6e0l4rc", firebase: { apiKey: "AIzaSyBw7_GTy7GtQyfkIRPVrWHEGKfcqeyXw0c", authDomain: "imex-test.firebaseapp.com", projectId: "imex-test", storageBucket: "imex-test.appspot.com", messagingSenderId: "991923618608", appId: "1:991923618608:web:633437569cdad78299bef5", measurementId: "G-TW0XLZEH18", }, }, prod: { API_URL: "https://api.imex.online", uri: "https://db.imex.online/v1/graphql", wsuri: "wss://db.imex.online/v1/graphql", firebase: { apiKey: "AIzaSyDSezy-jGJreo7ulgpLdlpOwAOrgcaEkhU", authDomain: "imex-prod.firebaseapp.com", databaseURL: "https://imex-prod.firebaseio.com", projectId: "imex-prod", storageBucket: "imex-prod.appspot.com", messagingSenderId: "253497221485", appId: "1:253497221485:web:3c81c483b94db84b227a64", measurementId: "G-NTWBKG2L0M", }, }, "rometest": { API_URL: "https://api.test.romeonline.io", uri: "https://db.test.romeonline.io/v1/graphql", wsuri: "wss://db.test.romeonline.io/v1/graphql", firebase: { apiKey: "AIzaSyAuLQR9SV5LsVxjU8wh9hvFLdhcAHU6cxE", authDomain: "rome-prod-1.firebaseapp.com", projectId: "rome-prod-1", storageBucket: "rome-prod-1.appspot.com", messagingSenderId: "147786367145", appId: "1:147786367145:web:9d4cba68071c3f29a8a9b8", measurementId: "G-G8Z9DRHTZS", }, }, "romeprod": { API_URL: "https://api.romeonline.io", uri: "https://db.romeonline.io/v1/graphql", wsuri: "wss://db.romeonline.io/v1/graphql", firebase: { apiKey: "AIzaSyAuLQR9SV5LsVxjU8wh9hvFLdhcAHU6cxE", authDomain: "rome-prod-1.firebaseapp.com", projectId: "rome-prod-1", storageBucket: "rome-prod-1.appspot.com", messagingSenderId: "147786367145", appId: "1:147786367145:web:9d4cba68071c3f29a8a9b8", measurementId: "G-G8Z9DRHTZS", }, } }; const IS_ROME = Constants?.expoConfig?.extra?.appVariant === 'ROME'; function getEnvVars() { if (Updates.channel !== "production") return IS_ROME ? ENV.rometest : ENV.test; else return IS_ROME ? ENV.romeprod : ENV.prod; } export default getEnvVars();