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
# FCI_BUILD_DIR is a predefined environment variable pointing to the root of the Flutter project | |
cd $FCI_BUILD_DIR | |
# Write the environment variable in base64 into a JSON file | |
echo $GCLOUD_KEY_FILE | base64 --decode > ./gcloud_key_file.json | |
# Using the gcloud CLI (preinstalled on Codemagic) authenticate using the service account key | |
gcloud auth activate-service-account --key-file=gcloud_key_file.json | |
# Select YOUR Firebase project through which want to run the tests |