Metro 0.10.0: Classes annotated with ContributesIntoSet do not need to be annotated with Inject.
This commit is contained in:
parent
635d94ec72
commit
657a610f53
24 changed files with 25 additions and 46 deletions
|
|
@ -11,7 +11,6 @@ package io.element.android.services.analyticsproviders.posthog
|
|||
import com.posthog.PostHogInterface
|
||||
import dev.zacsweers.metro.AppScope
|
||||
import dev.zacsweers.metro.ContributesIntoSet
|
||||
import dev.zacsweers.metro.Inject
|
||||
import im.vector.app.features.analytics.itf.VectorAnalyticsEvent
|
||||
import im.vector.app.features.analytics.itf.VectorAnalyticsScreen
|
||||
import im.vector.app.features.analytics.plan.SuperProperties
|
||||
|
|
@ -25,7 +24,6 @@ import timber.log.Timber
|
|||
// private val IGNORED_OPTIONS: Options? = null
|
||||
|
||||
@ContributesIntoSet(AppScope::class)
|
||||
@Inject
|
||||
class PosthogAnalyticsProvider(
|
||||
private val postHogFactory: PostHogFactory,
|
||||
) : AnalyticsProvider {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ import android.content.Context
|
|||
import androidx.annotation.VisibleForTesting
|
||||
import dev.zacsweers.metro.AppScope
|
||||
import dev.zacsweers.metro.ContributesIntoSet
|
||||
import dev.zacsweers.metro.Inject
|
||||
import im.vector.app.features.analytics.itf.VectorAnalyticsEvent
|
||||
import im.vector.app.features.analytics.itf.VectorAnalyticsScreen
|
||||
import im.vector.app.features.analytics.plan.SuperProperties
|
||||
|
|
@ -38,7 +37,6 @@ import kotlinx.coroutines.runBlocking
|
|||
import timber.log.Timber
|
||||
|
||||
@ContributesIntoSet(AppScope::class)
|
||||
@Inject
|
||||
class SentryAnalyticsProvider(
|
||||
@ApplicationContext private val context: Context,
|
||||
private val sentryDsn: SentryDsn?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue