Skip to content

Enable R8 minification for release builds - #70

Merged
Nacchofer31 merged 4 commits into
masterfrom
feature/proguard-setup
Aug 17, 2026
Merged

Enable R8 minification for release builds#70
Nacchofer31 merged 4 commits into
masterfrom
feature/proguard-setup

Conversation

@Nacchofer31

Copy link
Copy Markdown
Owner

Summary

Enable R8 code shrinking and resource shrinking for the release build type, backed by a new proguard-rules.pro. Also removes an unused Coil dependency and adds a new tip card promoting the pick history feature.

Changes

  • build(android): turn on isMinifyEnabled + isShrinkResources for release, with proguard-android-optimize.txt and proguard-rules.pro
  • build: add proguard-rules.pro with rationale comments
  • chore(deps): drop coil-network-ktor2 from the version catalog (only ktor3 is used)
  • feat(ui): replace the genre-filter tip with a plain TipCard and add a "history" NewFeatureTipCard, including the tip_history string in all 14 locales

Why no R8 keep rules

Room, kotlinx-serialization and Coil ship their own consumer rules, and Koin 4.x resolves definitions by direct class reference, so R8 retains what's needed without blanket keep rules.

Dependencies (Room, kotlinx-serialization, coil) ship their own consumer
rules and Koin resolves by direct class reference, so no blanket rules
are needed.
@Nacchofer31 Nacchofer31 self-assigned this Aug 17, 2026
@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Nacchofer31
Nacchofer31 merged commit 7ff80b5 into master Aug 17, 2026
7 checks passed
@Nacchofer31
Nacchofer31 deleted the feature/proguard-setup branch August 17, 2026 09:28
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