dephinera
02/06/2024, 7:11 PMbuild/generated/ksp/metadata/commonMain/kotlin
and build/generated/ksp/ios*/ios*Main/kotlin
. Hence I get errors for each generated declaration for each ios target. Is it expected to have generated code for each target and not just in the common directory? The code I have annotated with @optics
resides within the shared
folder.
I’ve also created a minimum reproduce project (link in thread).dephinera
02/06/2024, 7:11 PMe: file:.../TestKSP/shared/build/generated/ksp/metadata/commonMain/kotlin/com/exampleapp/testksp/CommonSealed.A__Optics.kt:25:85 Conflicting declarations: public val CommonSealed.A.Companion.value
e: file:.../TestKSP/shared/build/generated/ksp/iosArm64/iosArm64Main/kotlin/com/exampleapp/testksp/CommonSealed.A__Optics.kt:25:85 Conflicting declarations: public val CommonSealed.A.Companion.value
...
dephinera
02/06/2024, 7:12 PMdephinera
02/06/2024, 7:32 PMadd("kspIosX64", "io.arrow-kt:arrow-optics-ksp-plugin:1.2.1")
add("kspIosArm64", "io.arrow-kt:arrow-optics-ksp-plugin:1.2.1")
add("kspIosSimulatorArm64", "io.arrow-kt:arrow-optics-ksp-plugin:1.2.1")
however if I don’t, I won’t be able to use optics for ios specific codedephinera
02/06/2024, 7:33 PMAlejandro Serrano.Mena
02/06/2024, 8:14 PM