Closed pewh closed 7 years ago
Thanks for the report, @pewh. I built a new project and couldn't find the mapping where I expected it (somewhere around build/outputs/proguard/...
). You could try adding -printmapping path/in/project/mapping.txt
and see if its generated?
Hello @kattrali, thanks for the response.
I've try to add -printmapping build/outputs/mapping/release/mapping.txt
, then ./gradlew assembleRelease && ./gradlew installRelease
, but still not generate mapping.txt
. I'm test again with -printmapping mapping.txt
and still no luck.
Hi @pewh if you remove the -dontobfuscate
line from the proguard configuration file it should obfuscate the code and generate a mapping file containing the mappings between the original names and the obfuscated names
Ah, it's generated now. Thanks @bullmo :beers:
Hello, from the tutorial I've read on https://docs.bugsnag.com/api/proguard-upload/, the param
-F proguard=@/path/to/mapping.txt
should include proguard mapping file. My question is: where I can get this file? I've search this and didn't see any mapping.txt. I also have make sure to enableenableProguardInReleaseBuilds
and execute./gradlew assembleRelease && ./gradlew installRelease
to generateapp-release.apk
. Maybe am I doing misconfiguration on react native project?This is my proguard file for reference: