Skip to content

Commit 61c0b89

Browse files
authored
Merge pull request #334 from joreilly/dep_updates
dependency updates + SwiftUI updates
2 parents 66f0764 + 17df962 commit 61c0b89

File tree

4 files changed

+244
-67
lines changed

4 files changed

+244
-67
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# BikeShare
22

3-
![kotlin-version](https://img.shields.io/badge/kotlin-2.2.10-blue?logo=kotlin)
3+
![kotlin-version](https://img.shields.io/badge/kotlin-2.2.21-blue?logo=kotlin)
44

55
Compose Multiplatform and SwiftUI based Kotlin Multiplatform sample project (based on [CityBikes API](http://api.citybik.es/v2/)). Uses [Circuit](https://github.com/slackhq/circuit) and [kotlin-inject](https://github.com/evant/kotlin-inject).
66

compose-web/src/wasmJsMain/kotlin/Main.kt

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,29 @@ import androidx.compose.ui.graphics.Color
2020
import androidx.compose.ui.text.style.TextAlign
2121
import androidx.compose.ui.unit.dp
2222
import androidx.compose.ui.window.CanvasBasedWindow
23+
import androidx.compose.ui.window.ComposeViewport
2324
import kotlinx.coroutines.delay
2425
import kotlinx.coroutines.flow.Flow
2526
import kotlinx.coroutines.flow.flow
2627

2728
@OptIn(ExperimentalComposeUiApi::class)
2829
fun main() {
29-
CanvasBasedWindow("BikeShare", canvasElementId = "bikeShareCanvas") {
30-
Column {
31-
Text(
32-
text ="Bike Share (powered by CityBikes)",
33-
modifier = Modifier
34-
.fillMaxWidth()
35-
.background(color = Color.Gray)
36-
.align(Alignment.CenterHorizontally)
37-
.padding(8.dp),
38-
textAlign = TextAlign.Center,
39-
color = Color.White,
40-
style = MaterialTheme.typography.headlineSmall)
41-
42-
BikeShareView()
43-
}
44-
}
30+
ComposeViewport(content = {
31+
Column {
32+
Text(
33+
text ="Bike Share (powered by CityBikes)",
34+
modifier = Modifier
35+
.fillMaxWidth()
36+
.background(color = Color.Gray)
37+
.align(Alignment.CenterHorizontally)
38+
.padding(8.dp),
39+
textAlign = TextAlign.Center,
40+
color = Color.White,
41+
style = MaterialTheme.typography.headlineSmall)
42+
43+
BikeShareView()
44+
}
45+
})
4546
}
4647

4748
const val POLL_INTERVAL = 30000L

gradle/libs.versions.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
[versions]
2-
kotlin = "2.2.20"
3-
ksp = "2.2.20-2.0.2"
2+
kotlin = "2.2.21"
3+
ksp = "2.3.0"
44

5-
androidGradlePlugin = "8.12.3"
5+
androidGradlePlugin = "8.13.1"
66
androidxActivity = "1.11.0"
7-
androidxComposeBom = "2025.09.00"
8-
androidxLifecycle = "2.9.3"
9-
androidxNavigationCompose = "2.9.4"
10-
androidxRoom = "2.8.0"
11-
circuit = "0.30.0"
12-
composeLifecyleRuntime="2.9.3"
13-
compose-multiplatform = "1.8.2"
14-
composeAdaptiveLayout = "1.1.2"
7+
androidxComposeBom = "2025.11.00"
8+
androidxLifecycle = "2.9.4"
9+
androidxNavigationCompose = "2.9.6"
10+
androidxRoom = "2.8.3"
11+
circuit = "0.31.0"
12+
composeLifecyleRuntime="2.9.6"
13+
compose-multiplatform = "1.9.3"
14+
composeAdaptiveLayout = "1.2.0"
1515
coroutines = "1.10.2"
1616
junit = "4.13.2"
17-
kmpNativeCoroutines = "1.0.0-ALPHA-47"
18-
kmpObservableViewModel = "1.0.0-BETA-14"
17+
kmpNativeCoroutines = "1.0.0-ALPHA-48"
18+
kmpObservableViewModel = "1.0.0-BETA-15"
1919
kotlin-inject-anvil = "0.1.6"
2020
kotlininject = "0.8.0"
2121
kotlinxSerialization = "1.9.0"
22-
ktor = "3.2.3"
23-
okhttp = "5.1.0"
22+
ktor = "3.3.2"
23+
okhttp = "5.3.0"
2424
runner = "1.7.0"
2525
slf4j = "2.0.17"
2626
slf4jAndroid = "2.0.17-0"
27-
sqlite = "2.6.0"
27+
sqlite = "2.6.1"
2828

2929
minSdk = "24"
3030
targetSdk = "36"

0 commit comments

Comments
 (0)