Skip to content

Commit 500010f

Browse files
authored
Merge pull request #416 from joreilly/dep_updates
dependency updates
2 parents bad3198 + 7486b30 commit 500010f

File tree

6 files changed

+42
-35
lines changed

6 files changed

+42
-35
lines changed

README.md

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

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

55

66
**Kotlin Multiplatform** project with SwiftUI, Jetpack Compose, Compose for Wear OS, Compose for Desktop and Compose for Web clients along with Ktor backend. Currently running on

app/src/main/java/com/surrus/peopleinspace/ui/PeopleInSpaceApp.kt

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import androidx.compose.material3.adaptive.navigationsuite.NavigationSuiteScaffo
1818
import androidx.compose.runtime.Composable
1919
import androidx.compose.runtime.getValue
2020
import androidx.compose.runtime.mutableStateOf
21+
import androidx.compose.runtime.rememberCoroutineScope
2122
import androidx.compose.runtime.saveable.rememberSaveable
2223
import androidx.compose.runtime.setValue
2324
import androidx.compose.ui.graphics.vector.ImageVector
@@ -27,6 +28,7 @@ import com.surrus.peopleinspace.R
2728
import com.surrus.peopleinspace.issposition.ISSPositionRoute
2829
import com.surrus.peopleinspace.persondetails.PersonDetailsScreen
2930
import com.surrus.peopleinspace.personlist.PersonListRoute
31+
import kotlinx.coroutines.launch
3032

3133
enum class AppDestinations(
3234
@StringRes val label: Int,
@@ -42,9 +44,12 @@ enum class AppDestinations(
4244
fun PeopleInSpaceApp() {
4345
var currentDestination by rememberSaveable { mutableStateOf(AppDestinations.PERSON_LIST) }
4446
val navigator = rememberListDetailPaneScaffoldNavigator<Assignment>()
47+
val scope = rememberCoroutineScope()
4548

4649
BackHandler(navigator.canNavigateBack()) {
47-
navigator.navigateBack()
50+
scope.launch {
51+
navigator.navigateBack()
52+
}
4853
}
4954

5055
PeopleInSpaceTheme {
@@ -72,15 +77,19 @@ fun PeopleInSpaceApp() {
7277
value = navigator.scaffoldValue,
7378
listPane = {
7479
PersonListRoute { person ->
75-
navigator.navigateTo(ListDetailPaneScaffoldRole.Detail, person)
80+
scope.launch {
81+
navigator.navigateTo(ListDetailPaneScaffoldRole.Detail, person)
82+
}
7683
}
7784
},
7885
detailPane = {
79-
navigator.currentDestination?.content?.let {
86+
navigator.currentDestination?.contentKey?.let {
8087
PersonDetailsScreen(
8188
person = it,
8289
showBackButton = !navigator.isListPaneVisible(),
83-
navigator::navigateBack
90+
popBack = { // It's good practice to name lambda parameters
91+
scope.launch { navigator.navigateBack() }
92+
}
8493
)
8594
}
8695
}

common/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ kotlin {
4242
jvm()
4343

4444
wasmJs {
45-
moduleName = "peopleinspaceShared"
4645
browser {
4746
commonWebpackConfig {
4847
outputFileName = "peopleinspaceShared.js"

compose-web/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ version = "1.0-SNAPSHOT"
1616
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
1717
kotlin {
1818
wasmJs {
19-
moduleName = "peopleinspace"
2019
browser {
2120
commonWebpackConfig {
2221
outputFileName = "peopleinspace.js"

gradle/libs.versions.toml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[versions]
2-
kotlin = "2.1.21"
3-
ksp = "2.1.21-2.0.1"
2+
kotlin = "2.2.0"
3+
ksp = "2.2.0-2.0.2"
44

5-
compose-multiplatform = "1.8.1"
5+
compose-multiplatform = "1.8.2"
66
composeUiTooling = "1.4.1"
77
coroutines = "1.10.2"
8-
kotlinxSerialization = "1.8.1"
9-
androidGradlePlugin = "8.9.3"
10-
koin = "4.0.4"
11-
koinCompose = "4.0.4"
12-
koinComposeMultiplatform = "4.0.4"
13-
ktor = "3.1.1"
8+
kotlinxSerialization = "1.9.0"
9+
androidGradlePlugin = "8.11.0"
10+
koin = "4.1.0"
11+
koinCompose = "4.1.0"
12+
koinComposeMultiplatform = "4.1.0"
13+
ktor = "3.2.1"
1414
osmdroidAndroid = "6.1.20"
1515
osmAndroidCompose = "0.0.5"
1616
slf4j = "2.0.17"
@@ -19,34 +19,34 @@ sqlJs = "1.8.0"
1919
webPackPlugin = "9.1.0"
2020

2121

22-
androidxActivity = "1.10.0"
23-
androidxComposeBom = "2025.01.01"
24-
material3-adaptive = "1.0.0"
25-
material3-adaptive-navigation-suite = "1.3.1"
26-
androidxNavigationCompose = "2.8.6"
27-
uiToolingPreview = "1.7.7"
28-
wearCompose = "1.4.0"
29-
androidxLifecycle = "2.8.7"
30-
androidxLifecycleKMP = "2.8.4"
22+
androidxActivity = "1.10.1"
23+
androidxComposeBom = "2025.06.01"
24+
material3-adaptive = "1.1.0"
25+
material3-adaptive-navigation-suite = "1.3.2"
26+
androidxNavigationCompose = "2.9.1"
27+
uiToolingPreview = "1.8.3"
28+
wearCompose = "1.4.1"
29+
androidxLifecycle = "2.9.1"
30+
androidxLifecycleKMP = "2.9.1"
3131

3232
coilCompose = "2.7.0"
33-
coilCompose3 = "3.1.0"
33+
coilCompose3 = "3.2.0"
3434

35-
horologist = "0.6.20"
35+
horologist = "0.6.23"
3636
glanceWearTiles = "1.0.0-alpha05"
37-
glanceAppWidget = "1.0.0"
38-
okhttp = "5.0.0-alpha.14"
39-
kermit = "2.0.5"
37+
glanceAppWidget = "1.1.1"
38+
okhttp = "5.0.0"
39+
kermit = "2.0.6"
4040

41-
gradleVersionsPlugin = "0.51.0"
41+
gradleVersionsPlugin = "0.52.0"
4242
shadowPlugin = "8.1.1"
43-
skie = "0.10.2"
43+
skie = "0.10.4"
4444

4545
mcp = "0.5.0"
4646

4747
minSdk = "24"
48-
compileSdk = "35"
49-
targetSdk = "34"
48+
compileSdk = "36"
49+
targetSdk = "36"
5050
minWearSdk = "26"
5151
targetWearSdk = "33"
5252

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
networkTimeout=10000
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
66
zipStoreBase=GRADLE_USER_HOME
77
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)