Flurry's Crash service can symbolicate the crashes reported by Flurry's SDK. This repository contains code to uploads the symbols required to properly symbolicate crashes from iOS apps and deobfuscate Android apps with ProGuard obfuscation. Both of these clients require programmatic access keys, these keys are NOT the same credentials that were previously used to access the apis from api.flurry.com.
-
Ensure that your project is configured to build dSYM bundles
-
Copy the python script at
xcode/upload-symbols.py
to the root of your project directoryAlternately, you can copy a Python 3.x version of the script from
xcode/upload-symbols-py3.py
. Note that this script requires Python 3, available at python.org or through Homebrew. -
Add a configuration file in the root of your project
flurry.config
. Contents:[flurry] token=TOKEN api-key=API_KEY
-
Configure the build phase. You can find your API key in the Flurry Developer portal or in you
AppDelegate
./upload-symbols.py -c flurry.config
Now whenever you build your application you will upload symbols to Flurry's symbolication service. If you wish you can configure your symbols to be sent only when you build an archive of your project; this is achieved by checking the _Run script only when installing` checkbox in the configuration.
The recommended approach is to use the Flurry Fastlane plugin.
If you choose not to use FastLane, this can be done manually through the following steps:
- Download symbols from iTunesConnect
- Run the script using the
-p <path to downloaded file>
argument. eg.
./upload-symbols.py -c flurry.config -p ~/Downloads/dSYMs.zip
Note: If you have ProGuard enabled and you do not send your mapping file at build time then you must upload the
generated mapping.txt
file manually before any stack traces received from that version of your app can be deobfuscated.
- Install Flurry SDK 6.7.0 or greater.
- Add the Flurry android crash plugin to your project's build.gradle file. Plugin can be found at: https://plugins.gradle.org/plugin/com.flurry.android.symbols.
The latest symbol upload plugin version is 8.0.0.
buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "gradle.plugin.com.flurry:symbol-upload:8.0.0" } }
- Add the upload-client plugin in plugins section and the following configuration to the app build.gradle file.
plugins { id: "com.flurry.android.symbols" } flurryCrash { apiKey "" token "" }
- You may provide either
configPath
orapiKey
andtoken
configPath "<the path to the flurry.config file described above>"
apiKey "<the api key used to initialize the SDK>"
token "<An environment variable to read the token from>"
useEnvVar (true|false)
the default foruseEnvVar
istrue
. You can set it tofalse
if you want to inline your Programmatic Token, though this is not recommended.ndk (true|false)
the default value isfalse
. You can set it totrue
if you want to upload symbols for your native code as well.uploadTimeout 12000
the minimum default timeout value is 60000ms or 1 minute but if you face build failures at uploadProguardMappingFilesRelease stage, try increasing the timeout