Add Distribution API to Sentry Android Gradle Plugin#986
Merged
runningcode merged 5 commits intoSep 17, 2025
Merged
Conversation
Add BuildDistributionExtension with enabledFor property to specify
which build variants should have build distribution enabled.
This commit only adds the API - no functionality is wired yet.
Usage:
```gradle
sentry {
buildDistribution {
enabledFor.set(["freeDebug", "paidRelease"])
}
}
```
Closes EME-277
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Rename BuildDistributionExtension to DistributionExtension - Rename buildDistribution DSL to distribution - Update tests and class names accordingly
chromy
reviewed
Sep 17, 2025
chromy
reviewed
Sep 17, 2025
chromy
reviewed
Sep 17, 2025
- Rename enabledFor to enabledVariants for clarity - Add documentation clarifying that global ignore settings have no relation to distribution settings - Keep @experimental annotation for new APIs
- Import @experimental annotation in SentryPluginExtension for cleaner usage - Apply spotless formatting to comment wrapping - Use consistent short @experimental annotation form
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DistributionExtensionwithenabledVariantspropertydistributionconfiguration DSL toSentryPluginExtension@ExperimentalDetails
This adds the API to specify which build variants should have distribution enabled. No functionality is wired yet - this is just the API surface.
This API is opt in (unlike the rest of Sentry features) because users need to explicitly choose which variants get build distribution. For example: a typical set up will disable distribution for release builds but enable them for internal testing builds like a nightly release or alpha testing. Users will also typically want this behavior disabled for debug builds.
Usage:
#skip-changelog (Until this feature is wired up)
Closes EME-277
🤖 Generated with Claude Code