Skip to content

Conversation

@runningcode
Copy link
Contributor

@runningcode runningcode commented Feb 9, 2026

Summary

Add support for install groups in the distribution extension to control update visibility between builds. This feature enables separation of distribution channels (e.g., "internal", "beta", "production") so that only builds with matching install groups can see updates for each other.

Changes

  • Add installGroups: SetProperty<String> to DistributionExtension with comprehensive documentation
  • Wire installGroups through SentryUploadAppArtifactTask to generate --install-group <group> CLI arguments
  • Add installGroups to GenerateDistributionPropertiesTask to write io.sentry.distribution.install-groups-override property as comma-separated string
  • Update AndroidComponentsConfig to pass install groups from extension to tasks

Usage

Users can now configure install groups like this:

sentry {
  distribution {
    enabled.set(true)
    installGroups.set(setOf("internal", "beta"))
    authToken.set(System.getenv("SENTRY_DISTRIBUTION_AUTH_TOKEN"))
  }
}

Add support for install groups in the distribution extension to control
update visibility between builds. Install groups allow separation of
distribution channels (e.g., "internal", "beta", "production") so that
only builds with matching install groups can see updates for each other.

Changes:
- Add installGroups property to DistributionExtension
- Wire installGroups through SentryUploadAppArtifactTask to generate
  --install-group CLI arguments for sentry-cli
- Add installGroups to GenerateDistributionPropertiesTask to write
  io.sentry.distribution.install-groups-override property
- Add comprehensive tests for all new functionality

The feature is forward-compatible with sentry-cli 3.1.0 (ignores unknown
flags) and will automatically activate when sentry-cli is upgraded to 3.2.0+.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (distribution) Add install-groups support by runningcode in #1070

Internal Changes 🔧

Deps

  • Update CLI to v3.2.0 by github-actions in #1068
  • Bump getsentry/craft from 2.20.0 to 2.20.1 by dependabot in #1063
  • Bump gradle/actions from 5.0.0 to 5.0.1 by dependabot in #1064
  • Bump getsentry/github-workflows/.github/workflows/updater.yml from 2 to 3 by dependabot in #1023
  • Bump getsentry/craft from 2.19.0 to 2.20.0 by dependabot in #1059

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 0d65641

@runningcode runningcode marked this pull request as draft February 9, 2026 13:24
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add upload functionality for [Size Analysis](https://docs.sentry.io/platforms/android/size-analysis/) ([#915](https://github.com/getsentry/sentry-android-gradle-plugin/pull/915))
- Add upload functionality for [Build Distribution](https://docs.sentry.io/platforms/android/build-distribution/) ([#986](https://github.com/getsentry/sentry-android-gradle-plugin/pull/986))
- Auto-install for [Auto-Update Build Distribution](https://docs.sentry.io/platforms/android/build-distribution/auto-update/) SDK when enabled for variant ([#1001](https://github.com/getsentry/sentry-android-gradle-plugin/pull/1001))
- Add install groups support for Build Distribution to control update visibility between distribution channels ([#1070](https://github.com/getsentry/sentry-android-gradle-plugin/pull/1070))
Copy link
Contributor

Choose a reason for hiding this comment

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

  • 🚫 The changelog entry seems to be part of an already released section ## 6.0.0.
    Consider moving the entry to the ## Unreleased section, please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant