Skip to content

Commit efb2185

Browse files
runningcodeclaude
andcommitted
fix(snapshot): Gate upload task registration on snapshots.enabled
The upload task and its Paparazzi wiring were registered unconditionally for all variants. This caused projects using both the Sentry plugin and Paparazzi to get unwanted task dependencies even with snapshots disabled. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 953aa3b commit efb2185

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ fun ApplicationAndroidComponentsExtension.configure(
7979
}
8080
}
8181

82-
variant.configureSnapshotsTasks(project, extension, cliExecutable, sentryOrg, sentryProject)
82+
if (extension.snapshots.enabled.get()) {
83+
variant.configureSnapshotsTasks(project, extension, cliExecutable, sentryOrg, sentryProject)
84+
}
8385

8486
if (isVariantAllowed(extension, variant.name, variant.flavorName, variant.buildType)) {
8587
val paths = OutputPaths(project, variant.name)

0 commit comments

Comments
 (0)