mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
var -> val
This commit is contained in:
+3
-3
@@ -29,9 +29,9 @@ class FakeAnalyticsService(
|
|||||||
didAskUserConsent: Boolean = false
|
didAskUserConsent: Boolean = false
|
||||||
): AnalyticsService {
|
): AnalyticsService {
|
||||||
|
|
||||||
private var isEnabledFlow = MutableStateFlow(isEnabled)
|
private val isEnabledFlow = MutableStateFlow(isEnabled)
|
||||||
private var didAskUserConsentFlow = MutableStateFlow(didAskUserConsent)
|
private val didAskUserConsentFlow = MutableStateFlow(didAskUserConsent)
|
||||||
var capturedEvents = mutableListOf<VectorAnalyticsEvent>()
|
val capturedEvents = mutableListOf<VectorAnalyticsEvent>()
|
||||||
|
|
||||||
override fun getAvailableAnalyticsProviders(): List<AnalyticsProvider> = emptyList()
|
override fun getAvailableAnalyticsProviders(): List<AnalyticsProvider> = emptyList()
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ import kotlinx.coroutines.flow.MutableStateFlow
|
|||||||
|
|
||||||
class FakeSeenInvitesStore : SeenInvitesStore {
|
class FakeSeenInvitesStore : SeenInvitesStore {
|
||||||
|
|
||||||
private var existing = MutableStateFlow(emptySet<RoomId>())
|
private val existing = MutableStateFlow(emptySet<RoomId>())
|
||||||
private var provided: Set<RoomId>? = null
|
private var provided: Set<RoomId>? = null
|
||||||
|
|
||||||
fun publishRoomIds(invites: Set<RoomId>) {
|
fun publishRoomIds(invites: Set<RoomId>) {
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ import kotlinx.coroutines.flow.flowOf
|
|||||||
val A_OIDC_DATA = OidcDetails(url = "a-url")
|
val A_OIDC_DATA = OidcDetails(url = "a-url")
|
||||||
|
|
||||||
class FakeAuthenticationService : MatrixAuthenticationService {
|
class FakeAuthenticationService : MatrixAuthenticationService {
|
||||||
private var homeserver = MutableStateFlow<MatrixHomeServerDetails?>(null)
|
private val homeserver = MutableStateFlow<MatrixHomeServerDetails?>(null)
|
||||||
private var oidcError: Throwable? = null
|
private var oidcError: Throwable? = null
|
||||||
private var oidcCancelError: Throwable? = null
|
private var oidcCancelError: Throwable? = null
|
||||||
private var loginError: Throwable? = null
|
private var loginError: Throwable? = null
|
||||||
|
|||||||
Reference in New Issue
Block a user