Fix: handle google services files in expo env #7
Labels
multiplatform
Issue affects both android and ios
tech debt
Something that we're bringing back from the past that must be addressed and solved
Summary
TLDR we need to keep google services files private; how do we achieve this? by adding them to
.gitignore
! The problem is that by doing this EAS doesn't pick them up when uploading to it.The solution we have rn is to override the
.gitignore
with a.easignore
which has everything ignored by the.gitignore
except for the google services files.This is not considered the best way to handle this situation as mentioned in the related issue; we should follow the solution in the related issue and handle everything with Environment variables in the EAS dashboard, this will benefit in both not having to keep a local copy of the services files and also not having to copy every change to the
.gitignore
to the.easignore
.When previously trying to use this solution it wasn't working as intended and the build services couldn't decode and copy the files from env.
Todo / ordered steps
$ base64 google-services.json
).easignore
Everything should build without failing in the last steps; if it fails will probably be with a message "Can not find google-services.json / GoogleServices_Info.plist"
Possible impacts / side effects on existing features
This will only impact the build phase and should not have any side effect
Additional notes
EAS related issue: expo/eas-cli#228
The text was updated successfully, but these errors were encountered: