Skip to content

build(release): enable R8 shrinking and obfuscation - #17

Merged
xuandung38 merged 2 commits into
mainfrom
chore/release-r8
Oct 12, 2026
Merged

xuandung38 merged 2 commits into
mainfrom
chore/release-r8

Conversation

@xuandung38

Copy link
Copy Markdown
Contributor
  • build(android): enable R8 on release builds
  • build(android): keep Netty loggers from R8 class merging

Play reports almost no DEX obfuscation while minify is off. Release
now shrinks and obfuscates (versionCode 5), with keep rules for the
Netty and serialization paths that otherwise fail at startup.

Signed-off-by: Hồ Xuân Dũng <me@hxd.vn>
keepclassmembers still let R8 merge Log4J2Logger into a concrete class
whose log methods stayed abstract. Keeping the logging package stops that.

Signed-off-by: Hồ Xuân Dũng <me@hxd.vn>
@xuandung38
xuandung38 merged commit a31d75c into main Oct 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant