mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-28 12:57:37 +00:00
fix(build): add default value for Sentry DSN
This commit is contained in:
parent
ea7ba60511
commit
e4b6c89cc6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user