diff --git a/.env.development b/.env.development deleted file mode 100644 index 243f48e..0000000 --- a/.env.development +++ /dev/null @@ -1,10 +0,0 @@ -REACT_APP_GRAPHQL_ENDPOINT=https://bodyshop-dev-db.herokuapp.com/v1/graphql -REACT_APP_GRAPHQL_ENDPOINT_WS=wss://bodyshop-dev-db.herokuapp.com/v1/graphql -REACT_APP_GA_CODE=231099835 -REACT_APP_FIREBASE_CONFIG={"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"} -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 -REACT_APP_FIREBASE_PUBLIC_VAPID_KEY='BG3tzU7L2BXlGZ_3VLK4PNaRceoEXEnmHfxcVbRMF5o5g05ejslhVPki9kBM9cBBT-08Ad9kN3HSpS6JmrWD6h4' -REACT_APP_STRIPE_PUBLIC_KEY=pk_test_51GqB4TJl3nQjrZ0wCQWAxAhlNF8jKe0tipIa6ExBaxwJGitwvFsIZUEua4dUzaMIAuXp4qwYHXx7lgjyQSwP0Pe900vzm38C7g \ No newline at end of file diff --git a/.env.production b/.env.production deleted file mode 100644 index b7ad0d5..0000000 --- a/.env.production +++ /dev/null @@ -1,10 +0,0 @@ -REACT_APP_GRAPHQL_ENDPOINT=https://bodyshop-dev-db.herokuapp.com/v1/graphql -REACT_APP_GRAPHQL_ENDPOINT_WS=wss://bodyshop-dev-db.herokuapp.com/v1/graphql -REACT_APP_GA_CODE=231103507 -REACT_APP_FIREBASE_CONFIG={"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"} -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 -REACT_APP_FIREBASE_PUBLIC_VAPID_KEY='BMgZT1NZztW2DsJl8Mg2L04hgY9FzAg6b8fbzgNAfww2VDzH3VE63Ot9EaP_U7KWS2JT-7HPHaw0T_Tw_5vkZc8' -REACT_APP_STRIPE_PUBLIC_KEY=pk_test_51GqB4TJl3nQjrZ0wCQWAxAhlNF8jKe0tipIa6ExBaxwJGitwvFsIZUEua4dUzaMIAuXp4qwYHXx7lgjyQSwP0Pe900vzm38C7g \ No newline at end of file diff --git a/App.js b/App.js index b5753ac..f97fc39 100644 --- a/App.js +++ b/App.js @@ -7,17 +7,20 @@ import React from "react"; import { StatusBar as rnStatusBar, StyleSheet } from "react-native"; import { Provider } from "react-redux"; import { PersistGate } from "redux-persist/integration/react"; +import * as Sentry from "sentry-expo"; import ScreenMainComponent from "./components/screen-main/screen-main.component"; +import env from "./env"; import { client } from "./graphql/client"; import { persistor, store } from "./redux/store"; import "./translations/i18n"; -import * as Sentry from "sentry-expo"; + +console.log("Environment Variables Set:", env); Sentry.init({ dsn: "https://8d6c3de1940a4e4f8b81cf4d2150bdea@o492140.ingest.sentry.io/5558869", enableInExpoDevelopment: true, - debug: true, // Sentry will try to print out useful debugging information if something goes wrong with sending an event. Set this to `false` in production. + //debug: true, // Sentry will try to print out useful debugging information if something goes wrong with sending an event. Set this to `false` in production. }); Sentry.Native.nativeCrash(); diff --git a/app.json b/app.json index 29d7592..566e01b 100644 --- a/app.json +++ b/app.json @@ -2,7 +2,7 @@ "expo": { "name": "imexmobile", "slug": "imexmobile", - "version": "1.0.1", + "version": "1.0.2ØØ", "orientation": "default", "icon": "./assets/logo192.png", "splash": { diff --git a/env.js b/env.js index 2a3a561..8042b8d 100644 --- a/env.js +++ b/env.js @@ -64,6 +64,7 @@ function getEnvVars(env = "") { 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);