-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't find ksp generated code #1
Comments
Hello
Yes, this is the correct behavior and way to declare adapters.
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?
The text was updated successfully, but these errors were encountered: