Created
November 6, 2023 13:19
-
-
Save KoheiKanagu/669681c8095ed2ebdac5204ebb6fbeee to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
set -euxo pipefail | |
BUNDLE_ID=dev.kingu.bundleId # FIXME: change to your bundle ID for iOS | |
PACKAGE_NAME=dev.kingu.package_name # FIXME: change to your package name for Android | |
[email protected] # FIXME: change to your Google account | |
PROJECT_NAME_DEV=project-name-dev # FIXME: change to your project name | |
PROJECT_NAME_PROD=project-name-prod # FIXME: change to your project name | |
for build_config in "Debug-dev" "Release-dev" "Profile-dev"; do | |
flutterfire configure \ | |
--project $PROJECT_NAME_DEV \ | |
--account $EMAIL \ | |
--out lib/constants/firebase_options_dev.dart \ | |
--yes \ | |
--ios-bundle-id $BUNDLE_ID.dev \ | |
--ios-build-config $build_config \ | |
--ios-out ios/dev/GoogleService-Info.plist \ | |
--android-package-name $PACKAGE_NAME.dev \ | |
--android-out /android/app/src/dev/google-services.json | |
done | |
for build_config in "Debug-prod" "Release-prod" "Profile-prod"; do | |
flutterfire configure \ | |
--project $PROJECT_NAME_PROD \ | |
--account $EMAIL \ | |
--out lib/constants/firebase_options_prod.dart \ | |
--yes \ | |
--ios-bundle-id $BUNDLE_ID \ | |
--ios-build-config $build_config \ | |
--ios-out ios/prod/GoogleService-Info.plist \ | |
--android-package-name $PACKAGE_NAME \ | |
--android-out /android/app/src/prod/google-services.json | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment