Skip to content

Meet Play's DEX optimization requirement #787

Open

Description

@ivanfenenko

Play Console flags release 1.2.1 (33) with "Improve your app's memory and performance with R8 optimisation". That alert is the DEX code-optimization check: uncompressed DEX is at least 10 MB, and at least one of shrinking, optimization, and obfuscation is under 25%. Play enforces the bar in February 2027. Apps under 10 MB of uncompressed DEX are exempt.

Release builds already run R8 (isMinifyEnabled = true, proguard-android-optimize.txt, since #596). Play reads the scores from BUNDLE-METADATA/com.android.tools/r8.json in the AAB. App bundle explorer shows the same numbers.

The Joni/jcodings keep in android/app/proguard-rules.pro stays. R8 rewriting QuantifierNode's initializer crashes highlighting. Resource shrinking (isShrinkResources = false) does not move these three scores and stays out of this ticket.

Acceptance:

  • The next Play release reports at least 25% shrinking, optimization, and obfuscation.
  • Highlighting still works on a minified release build.

Remaining:

  • Record the 1.2.1 (33) DEX size and the three scores from App bundle explorer
  • Raise any score under 25% by narrowing the keep rules that block it, leaving the Joni/jcodings keep
  • Confirm the shipped bundle's r8.json clears 25% on all three

Related: #596

Activity

  1. added
    android
    improvement
    todo
    priority: medium
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidimprovementpriority: mediumtodo

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions