Skip to content

Commit 08d41d7

Browse files
authored
fix(android): remove global ProGuard option from consumer rules (#372)
1 parent 00d5b2c commit 08d41d7

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

examples/rollbar-android/proguard-rules.pro

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,3 @@
1616
# public *;
1717
#}
1818

19-
# Uncomment this to preserve the line number information for
20-
# debugging stack traces.
21-
#-keepattributes SourceFile,LineNumberTable
22-
23-
# If you keep the line number information, uncomment this to
24-
# hide the original source file name.
25-
#-renamesourcefileattribute SourceFile

rollbar-android/proguard-rules.pro

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
public static ** valueOf(java.lang.String);
2323
}
2424

25-
# Uncomment this to preserve the line number information for
26-
# debugging stack traces.
25+
# Preserve the line number information for debugging stack traces.
2726
-keepattributes SourceFile,LineNumberTable
2827

29-
# If you keep the line number information, uncomment this to
30-
# hide the original source file name.
31-
-renamesourcefileattribute SourceFile
28+
# NOTE: -renamesourcefileattribute is a global ProGuard/R8 option and must NOT
29+
# be placed in library consumer rules. If you want to hide original source file
30+
# names in your app's stack traces, add the following to your app's own
31+
# proguard-rules.pro instead:
32+
# -renamesourcefileattribute SourceFile

0 commit comments

Comments
 (0)