Last active
May 4, 2021 15:07
-
-
Save KoheiKanagu/82d18621ca57e96a0a4e4a456383c006 to your computer and use it in GitHub Desktop.
GoogleService-Info.plistをFlavor毎に切り替えるRunScript dart-defineを使った場合
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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