Enable Sentry in the SDK: add SDK Sentry DSN value

This is provided to the SDK in `PlatformInitializer`.
This commit is contained in:
Jorge Martín 2025-11-21 10:13:47 +01:00 committed by Jorge Martin Espinosa
parent fbaedd017e
commit 53ab38d990
6 changed files with 16 additions and 1 deletions

View file

@ -32,6 +32,16 @@ android {
}
?: ""
)
buildConfigFieldStr(
name = "SDK_SENTRY_DSN",
value = if (isEnterpriseBuild) {
BuildTimeConfig.SERVICES_SENTRY_SDK_DSN
} else {
System.getenv("ELEMENT_SDK_SENTRY_DSN")
?: readLocalProperty("services.analyticsproviders.sdk.sentry.dsn")
}
?: ""
)
}
}