Last active
January 9, 2025 00:55
-
-
Save KoheiKanagu/669681c8095ed2ebdac5204ebb6fbeee to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| set -euxo pipefail | |
| while [[ "$#" -gt 0 ]]; do | |
| case $1 in | |
| --account) | |
| account="$2" | |
| shift | |
| ;; | |
| *) | |
| echo "Unknown parameter passed: $1" | |
| exit 1 | |
| ;; | |
| esac | |
| shift | |
| done | |
| BUNDLE_ID="dev.kingu.FIXME" | |
| PACKAGE_NAME="dev.kingu.fixme" | |
| PROJECT_NAME_STG="fixme-stg" | |
| PROJECT_NAME_PROD="fixme-prod" | |
| for buildConfig in Debug-stg Release-stg Profile-stg; do | |
| flutterfire configure \ | |
| --project "$PROJECT_NAME_STG" \ | |
| --account "$account" \ | |
| --out "lib/constants/firebase_options_stg.dart" \ | |
| --ios-bundle-id $BUNDLE_ID.stg \ | |
| --ios-build-config $buildConfig \ | |
| --ios-out "ios/stg/GoogleService-Info.plist" \ | |
| --android-package-name $PACKAGE_NAME.stg \ | |
| --android-out /android/app/src/stg/google-services.json \ | |
| --yes | |
| done | |
| for buildConfig in Debug-prod Release-prod Profile-prod; do | |
| flutterfire configure \ | |
| --project "$PROJECT_NAME_PROD" \ | |
| --account "$account" \ | |
| --out "lib/constants/firebase_options_prod.dart" \ | |
| --ios-bundle-id $BUNDLE_ID \ | |
| --ios-build-config $buildConfig \ | |
| --ios-out "ios/prod/GoogleService-Info.plist" \ | |
| --android-package-name $PACKAGE_NAME \ | |
| --android-out /android/app/src/prod/google-services.json \ | |
| --yes | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment