Skip to content

fix(proguard): Support AGP app optimization DSL - #1376

Merged
romtsn merged 4 commits into
mainfrom
fix/agp-93-optimization-mappings
Aug 6, 2026
Merged

romtsn merged 4 commits into
mainfrom
fix/agp-93-optimization-mappings

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • recognize AGP 9.3's optimization.enable DSL as enabling R8 even when legacy isMinifyEnabled remains false
  • preserve binary compatibility with older AGP versions by reflecting the merged AGP optimization state only on 9.3+
  • warn when AGP's internal optimization state cannot be read instead of failing silently
  • verify the AGP 9.3 mapping flow by executing assembleRelease, UUID generation, and the dry-run upload task

Testing

  • git diff --check
  • previous CI matrix passed for AGP 9.3.0-rc02, 9.3.1, and 9.4.0-alpha07
  • local Gradle checks unavailable in the sandbox because Java is not installed; CI will validate the new execution-level test

#skip-changelog

Requested by Roman Zavarnitsyn via Junior.

--

View Junior Session

sentry-junior Bot and others added 2 commits July 30, 2026 21:12
@romtsn
romtsn marked this pull request as ready for review July 31, 2026 11:23
@romtsn romtsn added the sanity-check PR needs a lightweight review for obvious issues label Jul 31, 2026

@0xadam-brown 0xadam-brown left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with the SentryBot comment; otherwise lgtm

@runningcode runningcode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@runningcode runningcode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we testing against AGP 9.3 though?

Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a3da049. Configure here.

Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>
@romtsn
romtsn merged commit d676418 into main Aug 6, 2026
24 checks passed
@romtsn
romtsn deleted the fix/agp-93-optimization-mappings branch August 6, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sanity-check PR needs a lightweight review for obvious issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants