Skip to content

Commit 7093aa6

Browse files
runningcodeclaude
andauthored
refactor(distribution): Remove validation requiring distribution.enabled for updateSdkVariants (#1019)
Removes the check that prevented using updateSdkVariants when distribution.enabled is false. This allows users to embed the auto-update SDK in specific variants without requiring distribution uploads to be globally enabled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5bac672 commit 7093aa6

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

plugin-build/src/main/kotlin/io/sentry/android/gradle/AndroidComponentsConfig.kt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,6 @@ fun ApplicationAndroidComponentsExtension.configure(
7676
"You cannot use the auto-update SDK in variants where the Sentry SDK is disabled."
7777
)
7878
}
79-
80-
// Check if updateSdkVariants is set but distribution uploads are disabled
81-
val distributionEnabled = extension.distribution.enabled.get()
82-
if (!distributionEnabled) {
83-
throw IllegalArgumentException(
84-
"Invalid configuration: updateSdkVariants contains variant '$variantName' but buildDistribution.enabled is false. " +
85-
"It doesn't make sense to embed the auto-update SDK without uploading the build."
86-
)
87-
}
8879
}
8980

9081
if (isVariantAllowed(extension, variant.name, variant.flavorName, variant.buildType)) {

0 commit comments

Comments
 (0)