04/16/2023, 5:38 PM
Hi folks, couple questions about the state of KSP for Kotlin Multiplatform. • There are plans to a better dependency addiction for Kotlin Multiplatform? Currently we need to specify directly the configuration for the targets that we want to generate code for, for multiplatform project usually is all the targets. • There are plans for supporting code generation only for Common source set? It seems that most of the case for Kotlin Multiplatform library is waste of compilation time and adds more complexity generating code for each platform instead of relying on generating code for each one. There is a open issue about this but did not have any comments about future plans on supporting it. The currently solution for the both problems is workarounds and a proper solution would be awesome now that we are getting even more libraries using KSP and even more developers adopting Kotlin Multiplatform.


04/17/2023, 12:01 AM
Lots of conversation on it here

Pavel Lahoda

04/23/2023, 11:14 AM
I tried to generate common code when I have both Android and iOS platforms and I was unable to do so even with the above mentioned workaround. Commented in the original GitHub with more details, but was unable to solve code generation in this particular setup.


04/26/2023, 6:37 AM
Let's see where it lands! 🙂