Reputation: 9264
So I'm building my app with proguard which obfuscates the code, and I am uploading my mapping.txt to the deobfuscation files. My crash reports show the class and method names, but they don't show line numbers.
In my build.gradle:
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
So then I upload as a deobfuscation file:
ProjectFolder/app/build/outputs/mapping/release/mapping.txt
So my question is:
Am I uploading the correct file for deobfuscation? There is also seeds.txt, dump.txt, usage.txt in that directory.
Is it possible to get line numbers in my crash reports through play store when building with proguard?
Upvotes: 3
Views: 1094
Reputation: 20110
Yes, I believe mapping.txt
is the right one.
As for viewing line numbers, I added the following to my proguard-rules.pro
file:
# To be able to see line numbers in stack traces
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
Upvotes: 5