Last active
September 27, 2015 11:52
-
-
Save evgeniyd/0684e4fc1733eb2495c0 to your computer and use it in GitHub Desktop.
Crashlytics (Fabric) scripts collection. ConditionalRunningCrashReports.sh: not running in DEBUG; MultipleEnvironmentsCrashReports.sh - set up for different organisations. Note: Fabric is set up via CocoaPods
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/sh | |
releaseConfig="Release" | |
debugConfiguration="Debug" | |
adhocConfiguration="AdHoc" | |
if [ "$adhocConfiguration" = "${CONFIGURATION}" ] || [ "$releaseConfig" = "${CONFIGURATION}" ]; then | |
echo "Running Crashlytics" | |
"${PODS_ROOT}/Fabric/Fabric.framework/run" <your_api_key> <your_build_secret> | |
else | |
echo "Crashlytics is NOT running" | |
fi |
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
releaseConfig="Release" | |
debugConfiguration="Debug" | |
adhocConfiguration="AdHoc" | |
if [ "$releaseConfig" = "${CONFIGURATION}" ]; then | |
echo "Running Crashlytics (Release)" | |
"${PODS_ROOT}/Fabric/Fabric.framework/run" <release_api_key> <release_build_secret> | |
elif [ "$adhocConfiguration" = "${CONFIGURATION}" ]; then | |
echo "Running Crashlytics (AdHoc)" | |
"${PODS_ROOT}/Fabric/Fabric.framework/run" <adhoc_api_key> <adhoc_build_secret> | |
elif [ "$debugConfiguration" = "${CONFIGURATION}" ]; then | |
echo "Running Crashlytics (Debug)" | |
"${PODS_ROOT}/Fabric/Fabric.framework/run" <debuge_api_key> <debug_build_secret> | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment