Has anyone managed to get compose-swift-bridge wor...
# touchlab-tools
c
Has anyone managed to get compose-swift-bridge working with cmp 1.8? I tried bumping my kotlin, skie, ksp versions... but all the ksp configurations are no longer being picked up in my gradle build. Any thoughts? ( these configs from the docs aren't picking up the tasks correctly anymore)
Copy code
// Adds the required targetName for the KSP plugin
tasks.withType<com.google.devtools.ksp.gradle.KspTaskNative>().configureEach {
    options.add(SubpluginOption("apoption", "compose-swift-bridge.targetName=$target"))
}

// support for generating ksp code in commonCode
// see <https://github.com/google/ksp/issues/567>
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>().configureEach {
    if (name != "kspCommonMainKotlinMetadata") {
        dependsOn("kspCommonMainKotlinMetadata")
    }
}
Missing subplugin option -
Copy code
[ksp] java.lang.IllegalArgumentException: Missing compose-swift-bridge.targetName, see docs
Missing task depends on -
Copy code
Reason: Task ':composeApp:kspKotlinIosSimulatorArm64' uses this output of task ':composeApp:kspCommonMainKotlinMetadata' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
ended up removing skie & compose-swift-bridge and just writing the swiftui bindings myself in the end 🤷