Hello, right now i am trying to get <https://touc...
# touchlab-tools
b
Hello, right now i am trying to get https://touchlab.co/composeswiftbridge to work. i downloaded the example and everything works there but after implementing it in my app i am having problems. In my build/generated/ksp/metadata/commonMain/co.touchlab.compose.swift.bridge no ComposeNativeViewFactory gets generated. Does anyone know how to fix this?
k
Some questions for more context: • Did you follow the tutorial here? https://touchlab.co/composeswiftbridge/tutorial • Are you using a multi-module setup?
s
I document a Gradle configuration with the wrong type, I will update our docs. You need to change the Task type to
org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>
.
Copy code
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>().configureEach {
    if (name != "kspCommonMainKotlinMetadata") {
        dependsOn("kspCommonMainKotlinMetadata")
    }
}