I don’t want obfuscated output on firebase crashlytics side with proguard, how can I do it? How can I exclude firebase crashlytics?
1 Like
Dear @aekopar,
Welcome to the PG Community!
You can find instructions for getting de-obfuscated stacktraces with ProGuard/Crashlytics inside the Firebase manual:
https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=android
To quickly summarize, you need to add the following to your proguard config file:
-keepattributes SourceFile,LineNumberTable # Keep file names and line numbers.
-keep public class * extends java.lang.Exception # Optional: Keep custom exceptions.
And enable mapping file upload in your buildTypes:
// To enable Crashlytics mapping file upload for specific build types:
buildTypes {
debug {
minifyEnabled true
firebaseCrashlytics {
mappingFileUploadEnabled true
}
}
}
Please let us know if something is not clear.
Kindest regards,
Jack