Skip to content

Instantly share code, notes, and snippets.

@KoheiKanagu
Last active May 4, 2021 15:07
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