Skip to content

Instantly share code, notes, and snippets.

@rodrigohenriques
Last active September 25, 2017 11:58
Show Gist options
  • Save rodrigohenriques/69eb50c45be799d2d755a378b15611b9 to your computer and use it in GitHub Desktop.
Save rodrigohenriques/69eb50c45be799d2d755a378b15611b9 to your computer and use it in GitHub Desktop.
Segment DEBUG and RELEASE Android Build Data with Crashlytics
<manifest ... >
...
<application ... >
...
<meta-data
android:name="io.fabric.ApiKey"
android:value="${fabricApiKey}" />
...
</application>
</manifest>
android {
...
buildTypes {
release {
...
manifestPlaceholders = [fabricApiKey: "$productionKey"]
...
}
debug {
...
manifestPlaceholders = [fabricApiKey: "$snapshotKey"]
...
}
}
}
@rodrigohenriques
Copy link
Author

You can see here how to create a new organization in your Fabric account.

https://h4ckish.com/2015/12/16/how-to-segment-your-debug-and-release-build-data-with-crashlytics/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment