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
|
|
@ -16,7 +16,6 @@ import io.element.android.libraries.di.annotations.SentrySdkDsn
|
|||
@BindingContainer
|
||||
@ContributesTo(AppScope::class)
|
||||
object NoopAnalyticsModule {
|
||||
@SentrySdkDsn
|
||||
@Provides
|
||||
fun provideSentrySdkDsn(): String? = null
|
||||
fun provideSentrySdkDsn(): SentrySdkDsn? = null
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,5 @@ import io.element.android.services.analyticsproviders.sentry.SentryConfig
|
|||
@ContributesTo(AppScope::class)
|
||||
object SentryModule {
|
||||
@Provides
|
||||
@SentrySdkDsn
|
||||
fun provideSentrySdkDsn(): String? = SentryConfig.SDK_DSN
|
||||
fun provideSentrySdkDsn(): SentrySdkDsn? = SentrySdkDsn(SentryConfig.SDK_DSN)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue