Skip to content

Commit

Permalink
some cleanup + dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joreilly committed Dec 24, 2024
1 parent b755160 commit b6ba2d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct ISSPositionContentViewController: UIViewControllerRepresentable {
let viewModel: ISSPositionViewModel

func makeUIViewController(context: Context) -> UIViewController {
SharedViewControllers().ISSPositionContentViewController(
SharedViewControllersKt.ISSPositionContentViewController(
viewModel: viewModel,
nativeViewFactory: iOSNativeViewFactory.shared
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ val LocalNativeViewFactory = staticCompositionLocalOf<NativeViewFactory> {
error("LocalNativeViewFactory not provided")
}

object SharedViewControllers {
fun ISSPositionContentViewController(viewModel: ISSPositionViewModel, nativeViewFactory: NativeViewFactory) = ComposeUIViewController {
CompositionLocalProvider(LocalNativeViewFactory provides nativeViewFactory) {
ISSPositionContent(viewModel)
}

fun ISSPositionContentViewController(viewModel: ISSPositionViewModel, nativeViewFactory: NativeViewFactory) = ComposeUIViewController {
CompositionLocalProvider(LocalNativeViewFactory provides nativeViewFactory) {
ISSPositionContent(viewModel)
}
}
}
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "2.1.0"
ksp = "2.1.0-1.0.28"
ksp = "2.1.0-1.0.29"

compose-multiplatform = "1.7.3"
composeUiTooling = "1.4.0"
Expand Down Expand Up @@ -37,7 +37,7 @@ kermit = "2.0.5"

gradleVersionsPlugin = "0.51.0"
shadowPlugin = "7.1.2"
skie = "0.9.5"
skie = "0.10.0"

minSdk = "24"
compileSdk = "35"
Expand Down

0 comments on commit b6ba2d9

Please sign in to comment.