Skip to content

Commit

Permalink
fix: builds
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarkhanzadian committed Feb 13, 2025
1 parent fa7c73d commit fea7623
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions apps/mobile/app.config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
import fs from 'fs';
import path from 'path';

export default () => {
// Setup EAS env variables for Firebase
function setupFirebaseEnvVariables() {
const googleServicesPathIos = process.env.GOOGLE_SERVICES_INFO_PLIST;
const googleServicesPathAndroid = process.env.GOOGLE_SERVICES_JSON;

console.log(__dirname);
console.log(path.join(__dirname, './android/app/google-services.json'));
if (googleServicesPathAndroid && fs.existsSync(googleServicesPathAndroid)) {
fs.copyFileSync(
googleServicesPathAndroid,
path.join(__dirname, './android/app/google-services.json')
);
}

const googleServicesPathIos = process.env.GOOGLE_SERVICES_INFO_PLIST;

if (googleServicesPathIos && fs.existsSync(googleServicesPathIos)) {
fs.copyFileSync(
googleServicesPathIos,
path.join(__dirname, './ios/leatherwalletmobile/GoogleService-Info.plist')
);
}
}

export default () => {
setupFirebaseEnvVariables();

return {
expo: {
name: 'Leather',
Expand Down

0 comments on commit fea7623

Please sign in to comment.