Skip to content

Instantly share code, notes, and snippets.

@majirosstefan
Created January 5, 2022 11:08
Show Gist options
  • Save majirosstefan/01a597ea6c1a88183a80f2f5009b7124 to your computer and use it in GitHub Desktop.
Save majirosstefan/01a597ea6c1a88183a80f2f5009b7124 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