Open Zane-XY opened 8 months ago
Hello
is this the correct way?
Yes, this is the correct behavior and way to declare adapters.
Can I just generate it as commonMain source?
I don't know why but the KSP plugin do not allow to generate code for the common target. Even if the generated code is common compatible. I can't do anything about it, it is a limitation on KSP itself.
I'm working alone on this project and you are right this is a bit confusing for new people wanting to use the lib. I'll add some documentation about it. If you have some remarks on how to improve the lib, please tell.
Using the below configuration, I can see the
AutoKtmAdaptersModule
is generated. But my project can't find it, even I've addedor
The compiler plugin seems to output each target in their own generated source dirs. But the usage of the AutoKtmAdaptersModule is from a commonMain sourceSet.
updates:
i get this working by defining an expect function in the commonMain,
and implemented it in each target:
This is not on the documentation though, is this the correct way? Can I just generate it as commonMain source?