mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 22:47:05 +05:30
fix(build): set a default for sentryDsn
This commit is contained in:
parent
7c27e26da7
commit
ab905d4061
1 changed files with 3 additions and 5 deletions
|
@ -25,11 +25,9 @@ class SentryPlugin : Plugin<Project> {
|
||||||
val catalog = project.extensions.getByType<VersionCatalogsExtension>()
|
val catalog = project.extensions.getByType<VersionCatalogsExtension>()
|
||||||
val libs = catalog.named("libs")
|
val libs = catalog.named("libs")
|
||||||
project.extensions.configure<ApplicationAndroidComponentsExtension> {
|
project.extensions.configure<ApplicationAndroidComponentsExtension> {
|
||||||
onVariants(selector()) { variant ->
|
onVariants(selector().all()) { variant ->
|
||||||
val sentryDsn = project.providers.environmentVariable(SENTRY_DSN_PROPERTY)
|
val sentryDsn = project.providers.environmentVariable(SENTRY_DSN_PROPERTY)
|
||||||
if (sentryDsn.isPresent) {
|
variant.manifestPlaceholders.put("sentryDsn", sentryDsn.getOrElse(""))
|
||||||
variant.manifestPlaceholders.put("sentryDsn", sentryDsn.get())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
project.plugins.apply(io.sentry.android.gradle.SentryPlugin::class)
|
project.plugins.apply(io.sentry.android.gradle.SentryPlugin::class)
|
||||||
|
@ -42,7 +40,7 @@ class SentryPlugin : Plugin<Project> {
|
||||||
autoUploadNativeSymbols.set(false)
|
autoUploadNativeSymbols.set(false)
|
||||||
includeNativeSources.set(false)
|
includeNativeSources.set(false)
|
||||||
ignoredVariants.set(emptySet())
|
ignoredVariants.set(emptySet())
|
||||||
ignoredBuildTypes.set(setOf("debug"))
|
ignoredBuildTypes.set(setOf("benchmark", "debug"))
|
||||||
ignoredFlavors.set(emptySet())
|
ignoredFlavors.set(emptySet())
|
||||||
tracingInstrumentation {
|
tracingInstrumentation {
|
||||||
enabled.set(true)
|
enabled.set(true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue