Repository navigation
ci: keep the R8 mapping.txt per build and release (#181) - #183
Conversation
…it to the latest and v2.xx releases (#181)
PR Summary by QodoPreserve R8 mappings as build artifacts and release assets
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1.
|
…e tagged build adds whichever is missing (Qodo on #183)
…e tagged build adds whichever is missing (Qodo on #183)
ci: keep the R8 mapping.txt per build and release (#181)
Release stack traces (from
Crash.java/ logcat) show only R8 names likea.a0, and the CI did not keep the mapping that turns them back into class and method names.app/build/outputs/mapping/release/mapping.txtas the workflow artifact<name>-mapping(e.g.decoder-v2-mapping). A build without minify has no mapping: the build step prints a warning and the upload usesif-no-files-found: warn, so neither fails.latestrelease: the mapping goes next to the APK asdecoder-v2-mapping.txt(a missing file is skipped).v2.xxrelease: created with the APK andmapping-<version>.txt. A release counts as complete only with the APK and, when the build has one, the mapping (Qodo): a rerun of the build of the tagged commit uploads whichever is missing; a build of another commit only warns. Existing releases are not changed, so v2.07 and older stay without a mapping (a later build of 2.07 only prints a warning).Workflow only, no app change, so no version bump. APK size impact: 0. No
-keepattributes SourceFile,LineNumberTable: that would add a few KB to the APK.Checked on this branch: the build uploaded
decoder-ci-r8-mapping-181-mapping(mapping.txt, 711,824 B, R8 8.13.17) next to the APK artifact.Part of #181