Let R8 obfuscate release builds

Shrinks the dex further. Crash reports keep file names and line
numbers; the mapping file restores the names and is kept with the CI
artifacts.
This commit is contained in:
2026-10-25 14:46:33 +02:00
parent 026c2c9493
commit d9080195ab
2 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -47,5 +47,7 @@ jobs:
if: always() if: always()
with: with:
name: apk name: apk
path: app/build/outputs/apk/**/*.apk path: |
app/build/outputs/apk/**/*.apk
app/build/outputs/mapping/release/mapping.txt
if-no-files-found: ignore if-no-files-found: ignore
+3 -2
View File
@@ -1,3 +1,4 @@
# Readable stack traces in crash reports # File names and line numbers stay in stack traces, names are obfuscated. To read a crash
# report, build the same release (builds are reproducible) and run
# retrace app/build/outputs/mapping/release/mapping.txt crash.txt
-keepattributes SourceFile,LineNumberTable -keepattributes SourceFile,LineNumberTable
-dontobfuscate