Last active
May 19, 2022 02:38
-
-
Save mahmudahsan/014252edcc5056b3017b6ab6b3dcec1f 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
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