aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-10-14 19:16:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-10-14 19:16:24 +0000
commitb215d93833b64053f471bd5c1f614e476fc746fd (patch)
tree6f0b7b7f4b07d3955d475f1720399745aa7a98cb
parent0a00cd27d25d70f646b0eb5975541610c741c362 (diff)
parentdd1fd797289e7f6280105588f9e0480ef41beebb (diff)
downloadbuild-b215d93833b64053f471bd5c1f614e476fc746fd.tar.gz
Merge "Ensure line numbers are preserved in default Proguard config"
-rw-r--r--core/proguard_basic_keeps.flags3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/proguard_basic_keeps.flags b/core/proguard_basic_keeps.flags
index f9d2d30d55..7e7b2701ca 100644
--- a/core/proguard_basic_keeps.flags
+++ b/core/proguard_basic_keeps.flags
@@ -2,6 +2,9 @@
# that isn't explicitly part of the API
-dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers
+# Preserve line number information for debugging stack traces.
+-keepattributes SourceFile,LineNumberTable
+
# Annotations are implemented as attributes, so we have to explicitly keep them.
# Keep all runtime-visible annotations like RuntimeVisibleParameterAnnotations
# and RuntimeVisibleTypeAnnotations, as well as associated defaults.