File tree 4 files changed +14
-12
lines changed
androidApp/src/main/java/dev/johnoreilly/bikeshare/ui/theme
commonMain/kotlin/dev/johnoreilly/common/viewmodel
jvmMain/kotlin/dev/johnoreilly/common/di
4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ fun BikeShareTheme(
106
106
darkTheme : Boolean = isSystemInDarkTheme(),
107
107
androidTheme : Boolean = false,
108
108
disableDynamicTheming : Boolean = false,
109
- content : @Composable() () -> Unit
109
+ content : @Composable () -> Unit
110
110
) {
111
111
112
112
val colorScheme = if (androidTheme) {
Original file line number Diff line number Diff line change @@ -6,11 +6,13 @@ import com.rickclephas.kmp.observableviewmodel.stateIn
6
6
import com.rickclephas.kmp.nativecoroutines.NativeCoroutinesState
7
7
import dev.johnoreilly.common.di.Singleton
8
8
import dev.johnoreilly.common.repository.CityBikesRepository
9
+ import kotlinx.coroutines.ExperimentalCoroutinesApi
9
10
import kotlinx.coroutines.flow.SharingStarted
10
11
import kotlinx.coroutines.flow.filterNotNull
11
12
import kotlinx.coroutines.flow.flatMapLatest
12
13
import me.tatarka.inject.annotations.Inject
13
14
15
+ @OptIn(ExperimentalCoroutinesApi ::class )
14
16
@Inject @Singleton
15
17
open class StationsViewModelShared (cityBikesRepository : CityBikesRepository ) : ViewModel() {
16
18
private val network = MutableStateFlow <String ?>(viewModelScope, null )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ abstract class DesktopApplicationComponent: SharedApplicationComponent {
23
23
24
24
fun createRoomDatabase (): AppDatabase {
25
25
val dbFile = File (System .getProperty(" java.io.tmpdir" ), dbFileName)
26
- return Room .databaseBuilder<AppDatabase >(name = dbFile.absolutePath, )
26
+ return Room .databaseBuilder<AppDatabase >(name = dbFile.absolutePath)
27
27
.setDriver(BundledSQLiteDriver ())
28
28
.build()
29
29
}
Original file line number Diff line number Diff line change 1
1
[versions ]
2
2
kotlin = " 2.0.21"
3
- ksp = " 2.0.21-1.0.25 "
3
+ ksp = " 2.0.21-1.0.26 "
4
4
5
5
coroutines = " 1.9.0"
6
6
kotlinxSerialization = " 1.7.3"
7
7
8
8
9
- androidGradlePlugin = " 8.7.1 "
9
+ androidGradlePlugin = " 8.7.2 "
10
10
circuit = " 0.24.0"
11
11
kotlininject = " 0.7.2"
12
12
ktor = " 3.0.0"
13
13
slf4j = " 2.0.16"
14
- kmpNativeCoroutines = " 1.0.0-ALPHA-35 "
15
- kmpObservableViewModel = " 1.0.0-BETA-6 "
14
+ kmpNativeCoroutines = " 1.0.0-ALPHA-37 "
15
+ kmpObservableViewModel = " 1.0.0-BETA-7 "
16
16
17
17
compose-multiplatform = " 1.7.0"
18
18
composeAdaptiveLayout = " 1.0.0"
19
- androidxActivity = " 1.9.2 "
20
- androidxRoom = " 2.7.0-alpha09 "
21
- sqlite = " 2.5.0-alpha09 "
22
- androidxComposeBom = " 2024.09.03 "
23
- androidxNavigationCompose = " 2.8.2 "
24
- androidxLifecycle = " 2.8.6 "
19
+ androidxActivity = " 1.9.3 "
20
+ androidxRoom = " 2.7.0-alpha11 "
21
+ sqlite = " 2.5.0-alpha11 "
22
+ androidxComposeBom = " 2024.10.01 "
23
+ androidxNavigationCompose = " 2.8.3 "
24
+ androidxLifecycle = " 2.8.7 "
25
25
junit = " 4.13.2"
26
26
27
27
minSdk = " 24"
You can’t perform that action at this time.
0 commit comments