https://kotlinlang.org logo
#ksp
Title
# ksp
j

Jey

03/05/2024, 8:44 PM
How can I depend in my code to ksp generated sources, I need to use a reference to a parameter that will be generated by the ksp plugin, I don't have a problem with this in jvm, you can use Class.forName, but in other platforms I can't see how it would be possible. I tried to declare the parameter in a stub file and exclude it from the final build, but I can only exclude it from the jar and I end up getting an error during linking phase because of a duplicate. for jvm it's still compiles without problems (which is probably natural, since we excluded file from jar).
j

Jiaxiang

03/06/2024, 2:03 AM
I couldn’t quite understand your question, can you share with some example?