Commit 02529c6
Add Distribution API to Sentry Android Gradle Plugin (#986)
* Add Build Distribution API to Sentry Android Gradle Plugin
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 BuildDistribution to Distribution
- Rename BuildDistributionExtension to DistributionExtension
- Rename buildDistribution DSL to distribution
- Update tests and class names accordingly
* Apply spotless formatting
* Address PR review comments
- 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 and apply spotless formatting
- Import @experimental annotation in SentryPluginExtension for cleaner usage
- Apply spotless formatting to comment wrapping
- Use consistent short @experimental annotation form
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 4d0c655 commit 02529c6
3 files changed
Lines changed: 53 additions & 0 deletions
File tree
- plugin-build/src
- main/kotlin/io/sentry/android/gradle/extensions
- test/kotlin/io/sentry/android/gradle/extensions
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
| |||
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments