fazk4g
Last Updated: February 25, 2016
·
5.132K
· handtwerk
89eda15e6035c389763e66797485200e

Configure ProGuard to Retain Line Numbers in Stack Traces

Want to obfuscate your code but still have line numbers in your stack traces? Add these two lines to your ProGuard config:

-renamesourcefileattribute SourceFile    
-keepattributes SourceFile,LineNumberTable

The first line ensures that source file names are hidden (will be named "SourceFile" in stack traces), the second instructs ProGuard to include the line numbers.

Say Thanks
Respond