Skip to content

fix(android): Remove the WebView adapter keep rule - #6828

Merged
markushi merged 2 commits into
mainfrom
fix/remove-webview-adapter-keep-rule
Dec 1, 2026
Merged

markushi merged 2 commits into
mainfrom
fix/remove-webview-adapter-keep-rule

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

📜 Description

Removes the -keepnames rule for SentryWebViewTracingAdapter.loadUrl from the sentry-android-core consumer ProGuard rules.

This reverts the ProGuard part of #6592.

💡 Motivation and Context

ASM runs before R8, so there's no need to have these keep rules.

💚 How did you test it?

Rule and comment change only.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

#skip-changelog

via markus.hintersteiner.

--

View Session [Sentry]

The Sentry Android Gradle Plugin rewrites the WebView.loadUrl calls
before R8 runs, so R8 renames the adapter and its call sites together
and no keep rule is needed. Partially reverts 8ebf12f.

Co-Authored-By: Markus Hintersteiner <[email protected]>
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit bac93ba.

Main concerns: public contract, dependencies customers inherit.

Rules that block low also fired:

  • R6: build or release configuration changed: sentry-android-core/proguard-rules.pro

This label is a hint for reviewers, not an approval.

@sentry

sentry Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.66.0 (1) release

⚙️ sentry-android Build Distribution Settings

@github-actions github-actions Bot removed the risk: medium PR risk score: medium label Dec 1, 2026
@markushi
markushi marked this pull request as ready for review December 1, 2026 11:45
@markushi
markushi requested review from a team and adinauer as code owners December 1, 2026 11:45
@markushi
markushi requested review from 0xadam-brown and romtsn and removed request for a team December 1, 2026 11:45
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Dec 1, 2026
@markushi markushi added the ship-it PR is ready to merge from a reviewer perspective label Dec 1, 2026
@markushi
markushi merged commit f4fb8c2 into main Dec 1, 2026
43 checks passed
@markushi
markushi deleted the fix/remove-webview-adapter-keep-rule branch December 1, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium ship-it PR is ready to merge from a reviewer perspective

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants