Pinned messages analytics : introduce LocalAnalyticsService so we can easily inject it in views

This commit is contained in:
ganfra 2024-09-20 18:28:25 +02:00
parent 183dc60b92
commit d0f363bf7d
7 changed files with 45 additions and 2 deletions

View file

@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicBoolean
import javax.inject.Inject
@SingleIn(AppScope::class)
@ContributesBinding(AppScope::class, boundType = AnalyticsService::class)
@ContributesBinding(AppScope::class, boundType = AnalyticsService::class, priority = ContributesBinding.Priority.HIGHEST)
class DefaultAnalyticsService @Inject constructor(
private val analyticsProviders: Set<@JvmSuppressWildcards AnalyticsProvider>,
private val analyticsStore: AnalyticsStore,