Skip to content

Instantly share code, notes, and snippets.

@KoheiKanagu
Last active May 4, 2021 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KoheiKanagu/82d18621ca57e96a0a4e4a456383c006 to your computer and use it in GitHub Desktop.
Save KoheiKanagu/82d18621ca57e96a0a4e4a456383c006 to your computer and use it in GitHub Desktop.
GoogleService-Info.plistをFlavor毎に切り替えるRunScript dart-defineを使った場合
if [[ $APP_ENV == "dev" ]]; then
\cp -f $PRODUCT_NAME/GoogleService-Info-dev.plist $PRODUCT_NAME/GoogleService-Info.plist
echo "dev GoogleService-Info copied."
elif [[ $APP_ENV == "stg" ]]; then
\cp -f $PRODUCT_NAME/GoogleService-Info-stg.plist $PRODUCT_NAME/GoogleService-Info.plist
echo "stg GoogleService-Info copied."
elif [[ $APP_ENV == "prod" ]]; then
\cp -f $PRODUCT_NAME/GoogleService-Info-prod.plist $PRODUCT_NAME/GoogleService-Info.plist
echo "prod GoogleService-Info copied."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment