Skip to content

Commit

Permalink
Merge pull request #150 from GTBitsOfGood/main
Browse files Browse the repository at this point in the history
firebase
  • Loading branch information
SamratSahoo authored Oct 14, 2024
2 parents cca20a2 + def34d6 commit 699e892
Show file tree
Hide file tree
Showing 6 changed files with 323 additions and 13 deletions.
2 changes: 1 addition & 1 deletion mobile/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Stack = createNativeStackNavigator();

export default function App() {
const [initialRoute, setInitialRoute] = useState<Screens>(
Screens.LANDING_SCREEN
Screens.DEVELOPMENT_SCREEN
);
const [appIsReady, setAppIsReady] = useState(false);

Expand Down
1 change: 1 addition & 0 deletions mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@react-navigation/native-stack": "^6.8.0",
"@react-navigation/stack": "^6.2.2",
"babel-preset-expo": "~11.0.0",
"crypto-browserify": "^3.12.0",
"expo": "^51.0.0",
"expo-av": "~14.0.7",
"expo-constants": "~16.0.2",
Expand Down
7 changes: 6 additions & 1 deletion mobile/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@
"jsx": "react",
"strict": true,
"esModuleInterop": true
},
"paths": {
"crypto": [
"node_modules/crypto-browserify"
],
}
}
}
19 changes: 13 additions & 6 deletions mobile/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ let FIREBASE_API_KEY,
FIREBASE_MESSAGING_SENDER_ID,
FIREBASE_APP_ID;
if (process.env.NODE_ENV === "production") {
FIREBASE_API_KEY = "AIzaSyAJfZOc0HTD2nFQwPgvxJ67hzF4VF12Ut4";
FIREBASE_AUTH_DOMAIN = "healing4heroes-bdd64.firebaseapp.com";
FIREBASE_PROJECT_ID = "healing4heroes-bdd64";
FIREBASE_STORAGE_BUCKET = "healing4heroes-bdd64.appspot.com";
FIREBASE_MESSAGING_SENDER_ID = "241634063707";
FIREBASE_APP_ID = "1:241634063707:web:e502d9385c22c44c7c567e";
// FIREBASE_API_KEY = "AIzaSyAJfZOc0HTD2nFQwPgvxJ67hzF4VF12Ut4";
// FIREBASE_AUTH_DOMAIN = "healing4heroes-bdd64.firebaseapp.com";
// FIREBASE_PROJECT_ID = "healing4heroes-bdd64";
// FIREBASE_STORAGE_BUCKET = "healing4heroes-bdd64.appspot.com";
// FIREBASE_MESSAGING_SENDER_ID = "241634063707";
// FIREBASE_APP_ID = "1:241634063707:web:e502d9385c22c44c7c567e";
FIREBASE_API_KEY = "AIzaSyD0uycogTnN_MEO6cKp0WEnGApVuKOFyys";
FIREBASE_AUTH_DOMAIN = "healing4heroes-f1bbb.firebaseapp.com";
FIREBASE_PROJECT_ID = "healing4heroes-f1bbb";
FIREBASE_STORAGE_BUCKET = "healing4heroes-f1bbb.appspot.com";
FIREBASE_MESSAGING_SENDER_ID = "873081765798";
FIREBASE_APP_ID = "1:873081765798:web:9e5869ae76832d28bc1967";

} else {
// Note these can be exposed
FIREBASE_API_KEY = "AIzaSyD0uycogTnN_MEO6cKp0WEnGApVuKOFyys";
Expand Down
3 changes: 3 additions & 0 deletions mobile/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ const createExpoWebpackConfigAsync = require("@expo/webpack-config");
module.exports = async function (env, argv) {
const config = await createExpoWebpackConfigAsync(env, argv);
config.resolve.alias["victory-native"] = "victory";
config.resolve.fallback = {
crypto: false
}
return config;
};
Loading

0 comments on commit 699e892

Please sign in to comment.