import Constants from "expo-constants"; export const prodUrl = "https://someapp.herokuapp.com"; const ENV = { dev: { REACT_APP_CLOUDINARY_ENDPOINT: "https://api.cloudinary.com/v1_1/bodyshop/image", REACT_APP_CLOUDINARY_IMAGE_ENDPOINT: "https://res.cloudinary.com/bodyshop/image/upload", REACT_APP_CLOUDINARY_API_KEY: "473322739956866", REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS: "h_200,w_200,c_thumb", firebase: { apiKey: "AIzaSyDPLT8GiDHDR1R4nI66Qi0BY1aYviDPioc", authDomain: "imex-dev.firebaseapp.com", databaseURL: "https://imex-dev.firebaseio.com", projectId: "imex-dev", storageBucket: "imex-dev.appspot.com", messagingSenderId: "759548147434", appId: "1:759548147434:web:e8239868a48ceb36700993", measurementId: "G-K5XRBVVB4S", }, }, staging: { REACT_APP_CLOUDINARY_ENDPOINT: "https://api.cloudinary.com/v1_1/bodyshop/image", REACT_APP_CLOUDINARY_IMAGE_ENDPOINT: "https://res.cloudinary.com/bodyshop/image/upload", REACT_APP_CLOUDINARY_API_KEY: "473322739956866", REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS: "h_200,w_200,c_thumb", 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", }, }, prod: { REACT_APP_CLOUDINARY_ENDPOINT: "https://api.cloudinary.com/v1_1/bodyshop/image", REACT_APP_CLOUDINARY_IMAGE_ENDPOINT: "https://res.cloudinary.com/bodyshop/image/upload", REACT_APP_CLOUDINARY_API_KEY: "473322739956866", REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS: "h_200,w_200,c_thumb", 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", }, }, }; function getEnvVars(env = "") { if (env === null || env === undefined || env === "") return ENV.dev; if (env.indexOf("dev") !== -1) return ENV.dev; if (env.indexOf("staging") !== -1) return ENV.staging; if (env.indexOf("prod") !== -1) return ENV.prod; else return ENV.prod; } export default getEnvVars(Constants.manifest.releaseChannel);