Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@evgeniyd
Last active September 27, 2015 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evgeniyd/0684e4fc1733eb2495c0 to your computer and use it in GitHub Desktop.
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
#!/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
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