I am having problems setting up lens generation in...
# arrow
d
I am having problems setting up lens generation in a multiplatform project. In step 3 of the setup I have the problem that the following error message is thrown by Gradle: "Type mismatch: inferred type is String but Action<KspExtension> was expected" Are multiplatform not supported or does the integration have to be done differently here?
message has been deleted
I have now found a way to activate the plugin. What would be the recommended way to configure the plugin?
Copy code
configurations["kspJs"].dependencies.add(project.dependencies.create("io.arrow-kt:arrow-optics-ksp-plugin:_"))
configurations["kspJvm"].dependencies.add(project.dependencies.create("io.arrow-kt:arrow-optics-ksp-plugin:_"))
s
Hey @Dirk, The recommended way is to use
add("kspJs", dependencies)
https://kotlinlang.org/docs/ksp-multiplatform.html
d
Thank you for pointing this out. I had actually tried to do this in the wrong block: kotlin -> sourceSets -> commonMain -> dependencies And not root -> dependencies
👍 1