5

When I previously released my application it went well, but now I try to upload a new version of my application and Google Play says that it has some java/kotlin code in it and asks for me to upload an deobfuscation txt file. I have been looking for answers and the people mention a "mapping.txt" file which android studio creates when you are using proguard or R8 code shrinkers.

Does anyone know where I can generate such file or where it may be?

Note: I haven't added or upgraded any nuget packages since the last time I updated the application and I already looked in the bin/obj folders with no luck. Also I checked the archive folder that creates when I bundle the application.

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
jurena
  • 51
  • 2

1 Answers1

2

The obfuscation step of ProGuard is disabled when building a Xamarin Android application. Therefore, there's no deobfuscation file generated and no need to upload one. You can ignore the warning.

From the Xamarin.Android documentation:

The Xamarin.Android ProGuard configuration does not obfuscate the APK. In fact, it is not possible to enable obfuscation through ProGuard (even through the use of custom configuration files).

Edit: There is currently an open PR in Xamarin.Android to have ProGuard generate the mapping.txt file. Note that this is only to silence the warning, though. In theory, it's not needed.

Daniel Saner
  • 382
  • 2
  • 14
  • but r8 is definitely doing obfuscation. my crash reports are obfuscated in google play store – Emil Dec 05 '20 at 04:59