Skip to content

docs(android): document per-variant Gradle feature overrides - #19147

Draft
sentry-junior[bot] wants to merge 1 commit into
masterfrom
docs/android-gradle-variant-overrides
Draft

sentry-junior[bot] wants to merge 1 commit into
masterfrom
docs/android-gradle-variant-overrides

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Documents the reverse sentry.variants { } DSL from getsentry/sentry-android-gradle-plugin#1420 on the Android Gradle configuration page.

Adds a Per-variant Feature Overrides section under Variant Filtering that covers:

  • Full AGP variant name matching (debug, stagingDebug, multi-dimension names)
  • Groovy + Kotlin DSL examples for disabling tracing instrumentation / runtime optimizations without turning off the whole plugin
  • Multi-flavor case (list each full variant)
  • Difference from top-level ignored* hard disables
  • Note that there is no build-type-wide shortcut yet

Also updates the existing ignored-variants alert to point at the new section for feature-scoped disables.

Note: The plugin PR is not released yet. Merge this with or after the SAGP release that ships #1420, or hold until that lands.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

Requested by roman.

--

View Junior Session [Sentry]

Document the sentry.variants reverse DSL for disabling tracing
instrumentation and runtime optimizations per AGP variant without
turning off the whole plugin.

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

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview Aug 27, 2026 1:02pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Aug 27, 2026 1:02pm

Request Review

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Aug 27, 2026
@codeowner-assignment
codeowner-assignment Bot requested a review from a team August 27, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants