Skip to content

Instantly share code, notes, and snippets.

@mahmudahsan
Last active May 19, 2022 02:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahmudahsan/014252edcc5056b3017b6ab6b3dcec1f to your computer and use it in GitHub Desktop.
Save mahmudahsan/014252edcc5056b3017b6ab6b3dcec1f to your computer and use it in GitHub Desktop.
upload_dsym_to_firebase()
{
echo "-> Uploading dSYMs files to Google Crashlytics"
if [ "$1" == "beta" ]
then
fastlane upload_crashlytics_beta
elif [ "$1" == "prod" ]
then
fastlane upload_crashlytics_prod
fi
}
if [ ! "$1" ]
then
echo "Argument missing. Pass: 'prod' or 'beta'"
elif [ "$1" == "beta" ]
then
deploy $1
sleep 60
upload_dsym_to_firebase $1
elif [ "$1" == "prod" ]
then
deploy $1
sleep 60
upload_dsym_to_firebase $1
else
echo "Wrong argument: $1 Pass: 'prod' or 'beta'"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment