Make SentrySdkDsn a value class instead of a qualifier
This commit is contained in:
parent
890b6111ea
commit
942eae94ad
5 changed files with 6 additions and 25 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue