From 22d35eb3ede3ddd18968ea84cd6f0a78c10a9d5b Mon Sep 17 00:00:00 2001 From: Yuri Schimke Date: Sat, 9 Oct 2021 15:25:53 +0100 Subject: [PATCH] Fix tests --- .../main/java/com/surrus/peopleinspace/ui/PersonListScreen.kt | 1 - common/src/commonMain/kotlin/com/surrus/common/di/Koin.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/surrus/peopleinspace/ui/PersonListScreen.kt b/app/src/main/java/com/surrus/peopleinspace/ui/PersonListScreen.kt index 533a211..5678fd3 100644 --- a/app/src/main/java/com/surrus/peopleinspace/ui/PersonListScreen.kt +++ b/app/src/main/java/com/surrus/peopleinspace/ui/PersonListScreen.kt @@ -9,7 +9,6 @@ import androidx.compose.material.Scaffold import androidx.compose.material.Text import androidx.compose.material.TopAppBar import androidx.compose.runtime.Composable -import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.collectAsState import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier diff --git a/common/src/commonMain/kotlin/com/surrus/common/di/Koin.kt b/common/src/commonMain/kotlin/com/surrus/common/di/Koin.kt index 9516c06..786cbd4 100644 --- a/common/src/commonMain/kotlin/com/surrus/common/di/Koin.kt +++ b/common/src/commonMain/kotlin/com/surrus/common/di/Koin.kt @@ -33,7 +33,7 @@ fun commonModule(enableNetworkLogs: Boolean) = module { single { CoroutineScope(Dispatchers.Default + SupervisorJob() ) } - single(createdAtStart = true) { + single { PeopleInSpaceRepository() .also { get().launch {