Cheok Yan Cheng
Cheok Yan Cheng

Reputation: 42758

When does Firebase Crashlytics upload Proguard/R8 mapping file to their server?

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.

enter image description here

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

Answers (2)

ADCREW LLC
ADCREW LLC

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"
  • $googleAppId: your Google App Id
  • $crashlyticsBuildId: set it to "00000000000000000000000000000000"
    (default build-id
  • $firebase_crashlytics_gradle: apply the version here. For me, I am using "2.9.1"

Upvotes: 0

Doug Stevenson
Doug Stevenson

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

Related Questions