Skip to content

Commit ca94b0d

Browse files
committed
Enable proguard obfuscation
Previously, this was disabled because the app is open source and there is no need to mask information in stack traces. However, optimizations in recent r8 versions make the stack traces quite useless anyway, even without obfuscation. Given that, let's switch back to the default behavior so that at least we can take advantage of smaller APK sizes. The mapping files will be published alongside official releases so that anyone can decode stacktraces from logs without needing a debug build. Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
1 parent 699e8ab commit ca94b0d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

app/proguard-rules.pro

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,6 @@
1212
# public *;
1313
#}
1414

15-
# Uncomment this to preserve the line number information for
16-
# debugging stack traces.
17-
-keepattributes SourceFile,LineNumberTable
18-
19-
# If you keep the line number information, uncomment this to
20-
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
22-
23-
# Disable obfuscation completely. As an open source project, shrinking is the
24-
# only goal of minification.
25-
-dontobfuscate
26-
2715
# We construct TreeDocumentFile via reflection in DocumentFileExtensions
2816
# to speed up SAF performance when doing path lookups.
2917
-keepclassmembers class androidx.documentfile.provider.TreeDocumentFile {

0 commit comments

Comments
 (0)