Reputation: 42758
All the while, we are using Google Play Console to capture crash report.
We need to upload Proguard/R8 mapping file manually, in order to deobfuscate the crash stack trace.
According to https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?authuser=0&platform=android and https://stackoverflow.com/a/47292432/72437 , such operation is no longer required.
May I know, what happen behind the scene? When does Firebase Crashlytics upload Proguard/R8 mapping file to their server?
Upvotes: 4
Views: 3314
Reputation: 1
You can use this path to upload your mapping file manually.
Use HTTP PUT to upload the mapping.txt file to the URL below.
I did check and it worked:
crashlyticsMappingUrl =
"https://firebasecrashlyticssymbols.googleapis.com" +
"/v1/project/-/app/$googleAppId/upload/java/$crashlyticsBuildId" +
"?X-CRASHLYTICS-API-CLIENT-TYPE=crashlytics-gradle&X-CRASHLYTICS-API-CLIENT-VERSION=$firebase_crashlytics_gradle"
Upvotes: 0
Reputation: 317740
The upload happens automatically when you run a build. In the build output you will see a line similar to this:
:app:crashlyticsUploadDistributionDevelopDebug
That's the task that uploads the mappings. This is all managed by the crashlytics gradle plugin that you added to your build.
Upvotes: 5