diff options
Diffstat (limited to 'build-logic/src')
-rw-r--r-- | build-logic/src/main/kotlin/app/passwordstore/gradle/SentryPlugin.kt | 6 |
1 files changed, 2 insertions, 4 deletions
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 6bcbdd85..589b248c 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> { project.extensions.configure<ApplicationAndroidComponentsExtension> { 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) |