Skip to content

Commit 37a9a68

Browse files
authored
Merge pull request #406 from joreilly/cleanup
some cleanup + dependency updates
2 parents b755160 + b6ba2d9 commit 37a9a68

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

PeopleInSpaceSwiftUI/PeopleInSpaceSwiftUI/ISSPositionScreen.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct ISSPositionContentViewController: UIViewControllerRepresentable {
2222
let viewModel: ISSPositionViewModel
2323

2424
func makeUIViewController(context: Context) -> UIViewController {
25-
SharedViewControllers().ISSPositionContentViewController(
25+
SharedViewControllersKt.ISSPositionContentViewController(
2626
viewModel: viewModel,
2727
nativeViewFactory: iOSNativeViewFactory.shared
2828
)

common/src/iOSMain/kotlin/com/surrus/common/ui/SharedViewControllers.kt

+5-6
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ val LocalNativeViewFactory = staticCompositionLocalOf<NativeViewFactory> {
1010
error("LocalNativeViewFactory not provided")
1111
}
1212

13-
object SharedViewControllers {
14-
fun ISSPositionContentViewController(viewModel: ISSPositionViewModel, nativeViewFactory: NativeViewFactory) = ComposeUIViewController {
15-
CompositionLocalProvider(LocalNativeViewFactory provides nativeViewFactory) {
16-
ISSPositionContent(viewModel)
17-
}
13+
14+
fun ISSPositionContentViewController(viewModel: ISSPositionViewModel, nativeViewFactory: NativeViewFactory) = ComposeUIViewController {
15+
CompositionLocalProvider(LocalNativeViewFactory provides nativeViewFactory) {
16+
ISSPositionContent(viewModel)
1817
}
19-
}
18+
}

gradle/libs.versions.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
kotlin = "2.1.0"
3-
ksp = "2.1.0-1.0.28"
3+
ksp = "2.1.0-1.0.29"
44

55
compose-multiplatform = "1.7.3"
66
composeUiTooling = "1.4.0"
@@ -37,7 +37,7 @@ kermit = "2.0.5"
3737

3838
gradleVersionsPlugin = "0.51.0"
3939
shadowPlugin = "7.1.2"
40-
skie = "0.9.5"
40+
skie = "0.10.0"
4141

4242
minSdk = "24"
4343
compileSdk = "35"

0 commit comments

Comments
 (0)