Repository navigation
Use R8's optimized resource shrinking - #97
Merged
Merged
Conversation
jgindin
force-pushed
the
agp-non-final-res-ids
branch
from
November 26, 2026 19:38
8613c42 to
f3b398f
Compare
jgindin
force-pushed
the
agp-optimized-resource-shrinking
branch
from
November 26, 2026 19:38
675c35d to
f61d593
Compare
jgindin
force-pushed
the
agp-non-final-res-ids
branch
from
November 26, 2026 19:56
f3b398f to
3c9dcbd
Compare
jgindin
force-pushed
the
agp-optimized-resource-shrinking
branch
2 times, most recently
from
November 26, 2026 20:09
a4e1d73 to
c190179
Compare
jgindin
force-pushed
the
agp-non-final-res-ids
branch
2 times, most recently
from
November 26, 2026 20:21
acb87f0 to
f2d3d0d
Compare
jgindin
force-pushed
the
agp-optimized-resource-shrinking
branch
from
November 26, 2026 20:21
c190179 to
d0632e3
Compare
…roid.r8.optimizedResourceShrinking=false. AGP warns that the option goes away in AGP 10. R8 now decides which resources ship from the code it keeps, so resources only unused library code referred to (mostly Material and AppCompat widgets the apps do not use) are left out, along with the R classes. The Zmanim release APK is about 112 KB smaller and each Zehut Yosef APK about 12 KB smaller. AboutLibraries' strings, which it looks up by name, stay kept by ZehutYosef's keep.xml. R8 writes its resource log in its own format, a line per resource ending in "is not reachable." for those it removed, so checkR8KeptNames reads that format. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jgindin
force-pushed
the
agp-optimized-resource-shrinking
branch
from
November 26, 2026 20:33
d0632e3 to
8dd3210
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Turns on R8's optimized resource shrinking by removing
android.r8.optimizedResourceShrinking=false, which AGP 9 deprecates and AGP 10 removes.What ships
keep.xmlstill keeps them.checkR8KeptNameslibrary_*keep removed fromkeep.xml, the check fails and names the removed strings.Checked on an API 36 emulator
releaseCheckon-device tests pass: Zmanim's 15, its offline-naming test with the network off, and 4 per Zehut Yosef flavor.🤖 Generated with Claude Code