diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/SentryPlugin.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/SentryPlugin.kt index 6bcbdd856..589b248c4 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/SentryPlugin.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/SentryPlugin.kt @@ -18,10 +18,8 @@ class SentryPlugin : Plugin { project.extensions.configure { onVariants(selector().withFlavor(FlavorDimensions.FREE to ProductFlavors.NON_FREE)) { variant -> - val sentryDsn = project.providers.environmentVariable(SENTRY_DSN_PROPERTY) - if (sentryDsn.isPresent) { - variant.manifestPlaceholders.put("sentryDsn", sentryDsn.get()) - } + val sentryDsn = project.providers.environmentVariable(SENTRY_DSN_PROPERTY).orElse("") + variant.manifestPlaceholders.put("sentryDsn", sentryDsn.get()) } } project.plugins.apply(SentryPlugin::class)