Skip to content

Enable R8 optimization - #9716

Open
joshliebe wants to merge 1 commit into
developfrom
feature/josh/enable-r8-optimization
Open

Enable R8 optimization#9716
joshliebe wants to merge 1 commit into
developfrom
feature/josh/enable-r8-optimization

Conversation

@joshliebe

@joshliebe joshliebe commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Task/Issue URL: https://app.asana.com/1/137249556945/project/1200204095367872/task/1218149406979969?focus=true
Tech Design URL (if applicable):
API Proposals URL(s) (if applicable):

Description

Steps to test this PR

  • General smoke test
  • Smoke test sync
  • Smoke test PIR
  • Smoke test autofill
  • Smoke test VPN
  • Smoke test Duck.ai
  • Smoke test downloads
  • Smoke test crash reporting

Note

Low Risk
Single Gradle default-rules swap with release minification still disabled; main risk is unexpected shrink/obfuscation behavior when minify is later enabled without sufficient keep rules.

Overview
The release build type in app/build.gradle now points proguardFiles at proguard-android-optimize.txt instead of proguard-android.txt, matching the pattern already used in gradle/android-library.gradle.

That default ruleset turns on additional R8 shrinking and optimization beyond the non-optimize file. minifyEnabled is still false for release in this diff, so the new rules only affect builds once release minification/R8 is actually enabled (or if another flag turns it on elsewhere).

Reviewed by Cursor Bugbot for commit 3830ce1. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

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