No need to sort AnalyticsProvider (it was copied from PushProvider)
This commit is contained in:
@@ -22,7 +22,10 @@ import io.element.android.services.analyticsproviders.api.trackers.ErrorTracker
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface AnalyticsService: AnalyticsTracker, ErrorTracker {
|
||||
fun getAvailableAnalyticsProviders(): List<AnalyticsProvider>
|
||||
/**
|
||||
* Get the available analytics providers.
|
||||
*/
|
||||
fun getAvailableAnalyticsProviders(): Set<AnalyticsProvider>
|
||||
|
||||
/**
|
||||
* Return a Flow of Boolean, true if the user has given their consent.
|
||||
|
||||
@@ -56,8 +56,8 @@ class DefaultAnalyticsService @Inject constructor(
|
||||
observeSessions()
|
||||
}
|
||||
|
||||
override fun getAvailableAnalyticsProviders(): List<AnalyticsProvider> {
|
||||
return analyticsProviders.sortedBy { it.index }
|
||||
override fun getAvailableAnalyticsProviders(): Set<AnalyticsProvider> {
|
||||
return analyticsProviders
|
||||
}
|
||||
|
||||
override fun getUserConsent(): Flow<Boolean> {
|
||||
|
||||
Reference in New Issue
Block a user