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.
Written by Arne Handt
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#