Skip to content

Instantly share code, notes, and snippets.

@majirosstefan
Created September 19, 2021 09:47
Show Gist options
  • Save majirosstefan/84fb74550133b9919d414c368a18cee5 to your computer and use it in GitHub Desktop.
Save majirosstefan/84fb74550133b9919d414c368a18cee5 to your computer and use it in GitHub Desktop.
# Firebase Config using base64
echo "Injecting secrets..."
echo "Updating Google JSON"
echo $GoogleServicesJson | base64 --decode >"$APPCENTER_SOURCE_DIRECTORY/android/app/google-services.json"
echo "Updating Google plist"
echo $GoogleServicesPlist | base64 --decode >"$APPCENTER_SOURCE_DIRECTORY/ios/GoogleService-Info.plist"
echo "Finished injecting secrets..."
echo "Google Services"
cat "$APPCENTER_SOURCE_DIRECTORY/ios/GoogleService-Info.plist"
echo "IsDev=${IsDev}" >>.env
echo "APPCENTER_BUILD_ID=${APPCENTER_BUILD_ID}" >>.env
echo "APPCENTER_BRANCH=${APPCENTER_BRANCH}" >>.env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment