Make SentrySdkDsn a value class instead of a qualifier
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
890b6111ea
commit
942eae94ad
@@ -50,6 +50,5 @@ interface AppBindings {
|
||||
|
||||
fun buildMeta(): BuildMeta
|
||||
|
||||
@SentrySdkDsn
|
||||
fun sentrySdkDsn(): String?
|
||||
fun sentrySdkDsn(): SentrySdkDsn?
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ class PlatformInitializer : Initializer<Unit> {
|
||||
logLevel = logLevel,
|
||||
extraTargets = listOf(ELEMENT_X_TARGET),
|
||||
traceLogPacks = runBlocking { preferencesStore.getTracingLogPacksFlow().first() },
|
||||
sdkSentryDsn = appBindings.sentrySdkDsn()?.takeIf { it.isNotBlank() },
|
||||
sdkSentryDsn = appBindings.sentrySdkDsn()?.value?.takeIf { it.isNotBlank() },
|
||||
)
|
||||
bugReporter.setCurrentTracingLogLevel(logLevel.name)
|
||||
platformService.init(tracingConfiguration)
|
||||
|
||||
Reference in New Issue
Block a user