Repository navigation
Commit 3262149
ADFA-3604: Re-enable R8 shrinking with keep rules for kotlin-analysis-api (#1596)
* ADFA-3604: Re-enable R8 shrinking with keep rules for kotlin-analysis-api
Removes the blanket -dontshrink added in ADFA-996, which neutered R8
shrinking entirely after it broke release-build project init. Adds
targeted keep rules for every class the bundled kotlin-analysis-api jar
loads reflectively via IntelliJ plugin XML descriptors and
ServiceLoader entries, since those are the paths R8 can't trace from
bytecode reachability alone.
Cuts release dex from 119.4 MB / 104,033 classes to 28.8 MB / 24,853
classes in a trial build. Not yet verified on a physical device.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* ADFA-3604: Document keep-rule generation and regeneration procedure
Review feedback on #1596: the 352-entry keep-rule list had no documented
provenance. Adds the exact extraction/parsing steps used to generate it
and how to regenerate and diff it after a Kotlin Analysis API or
IntelliJ platform dependency bump.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>1 parent b865016 commit 3262149
2 files changed
Lines changed: 393 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | 136 | | |
140 | 137 | | |
141 | 138 | | |
| |||
0 commit comments