I just implemented Firebase Crash Reporting but I don't feel like uploading the mapping file manually every time. So I want to do this automatically. I followed the documentation, but this results in a script I would have to call. I don't have any fancy release script with passwords etc, so currently I make a release with Android Studios build option: "Generate Signed Apk...". Is there a way the upload the mapping after I used this option?
2 Answers
The documentation suggests that you can use a plugin and upload your release APK mappings with a Gradle task:
./gradlew :app:firebaseUploadReleaseProguardMapping Please be sure to read the documentation carefully, as there is some setup with service accounts that you need to perform before uploading anything this way.
6 Comments
Firebase Crash Reporting is now deprecated, now they suggest to Upgrade to Crashlytics instead, now that I'm looking for a method that automagically upload the mapping.txt file, I've found this:
To let Crashlytics automatically upload the ProGuard or DexGuard mapping file, remove this line from the config file:
-printmapping mapping.txt
Hope this can helpo somebody else