Skip to content

Commit b1390f8

Browse files
runningcodeclaude
andcommitted
feat(distribution): Add installGroupsOverride parameter to distribution options
Allows filtering distribution updates by install groups. Users can now configure installGroupsOverride in SentryOptions.DistributionOptions to restrict updates to specific install groups. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 0eaac1e commit b1390f8

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

sentry-android-distribution/src/main/java/io/sentry/android/distribution/DistributionIntegration.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public class DistributionIntegration(context: Context) : Integration, IDistribut
150150
versionCode = versionCode,
151151
versionName = versionName,
152152
buildConfiguration = buildConfiguration,
153+
installGroupsOverride = sentryOptions.distribution.installGroupsOverride,
153154
)
154155
} catch (e: PackageManager.NameNotFoundException) {
155156
sentryOptions.logger.log(SentryLevel.ERROR, e, "Failed to get package info")

sentry/api/sentry.api

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3754,6 +3754,7 @@ public final class io/sentry/SentryOptions$Cron {
37543754

37553755
public final class io/sentry/SentryOptions$DistributionOptions {
37563756
public field buildConfiguration Ljava/lang/String;
3757+
public field installGroupsOverride Ljava/util/List;
37573758
public field orgAuthToken Ljava/lang/String;
37583759
public field orgSlug Ljava/lang/String;
37593760
public field projectSlug Ljava/lang/String;

sentry/src/main/java/io/sentry/SentryOptions.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,9 @@ public static final class DistributionOptions {
664664

665665
/** Optional build configuration name for filtering (e.g., "debug", "release", "staging") */
666666
public @Nullable String buildConfiguration = null;
667+
668+
/** Optional install groups for filtering updates */
669+
public @Nullable List<String> installGroupsOverride = null;
667670
}
668671

669672
private @NotNull DistributionOptions distribution = new DistributionOptions();

0 commit comments

Comments
 (0)