Let element enterprise be able to configure id for mapTiler. (#4446)
* Let element enterprise configure the ids for maptiler service. * Disable location sharing and location viewer is the service is not available. * Fix compilation issue on connected test * Do not allow to reload the map if the mapId is not available. * Update screenshots * Rename file. * Better to inject a string provider here, so we can unit test DefaultLocationService. --------- Co-authored-by: ElementBot <android@element.io>
This commit is contained in:
parent
60f1c9500f
commit
2fd1c21df0
24 changed files with 198 additions and 36 deletions
|
|
@ -10,7 +10,6 @@ package io.element.android.libraries.pushstore.impl
|
|||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import io.element.android.libraries.matrix.api.core.SessionId
|
||||
import io.element.android.libraries.pushstore.api.UserPushStore
|
||||
import io.element.android.libraries.sessionstorage.test.observer.NoOpSessionObserver
|
||||
import kotlinx.coroutines.flow.first
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import org.junit.Test
|
||||
|
|
@ -28,7 +27,7 @@ class DefaultUserPushStoreFactoryTest {
|
|||
fun testParallelCreation() {
|
||||
val context = InstrumentationRegistry.getInstrumentation().targetContext.applicationContext
|
||||
val sessionId = SessionId("@alice:server.org")
|
||||
val userPushStoreFactory = DefaultUserPushStoreFactory(context, NoOpSessionObserver())
|
||||
val userPushStoreFactory = DefaultUserPushStoreFactory(context)
|
||||
var userPushStore1: UserPushStore? = null
|
||||
val thread1 = thread {
|
||||
userPushStore1 = userPushStoreFactory.getOrCreate(sessionId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue