diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-06-15 13:46:04 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-06-15 13:46:04 +0530 |
commit | e4b6c89cc6df1e80adf6ae88291adbbefd08d720 (patch) | |
tree | 35cb3ce34e5fa88f08c9b034fb1ab243733b88b1 /build-logic | |
parent | ea7ba605114228489c3d99a1ba96d1a7f5c17758 (diff) |
fix(build): add default value for Sentry DSN
Diffstat (limited to 'build-logic')
-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) |