Lionel Briand
01/29/2024, 10:56 AM@KtmContext data class User(val name: String)
This will automatically creates a UserKtmAdapter
on the same package.
The current implementation creates a AutoKtmAdaptersModule
with all generated adapters inside. Then, the user can set this module as default.
However, if there is two configuration for the same target, likely Jvm
and JvmTest
, the file AutoKtmAdaptersModule
is generated for both, and the upper most configuration takes precedence.
In this case the one generated in JvmTest
will replace the one in Jvm
.
Do you know of a way to combine them ?Jiaxiang
01/29/2024, 8:38 PMAutoKtmAdaptersModule
should only be generated for one configuration or at least you should generated them in different name spaces so there is no duplicate declaration otherwise it should be a compilation error?Lionel Briand
01/30/2024, 9:42 AMjvmMain -> package.a.AutoKtmAdaptersModule
jvmTest -> package.b.AutoKtmAdaptersModule
Should I find a way to pass ksp arguments based on configuration ? Do you know of any ?