Closed opatry closed 1 month ago
Hi, the code is not generated to commonMain, because your :lib1 is only having a single compile target https://foso.github.io/Ktorfit/knownissues/#kmp-project-with-single-target
Oh, I missed that section in the doc, it explains the issue indeed. Thanks.
Not sure it's an issue or something I missed, but I noticed that I wasn't able to reach the
Ktorfit.createFooApi()
extension in my setup, only the deprecatedKtorfit.create<FooApi>()
was available.I have the following project structure:
:lib1
FooApi
interfacecommonMain
:logic-core
:lib1
FooApi
interface. All source code incommonMain
:shared
:logic-core
commonMain
, only few things injvmMain
(desktop) orandroidMain
(android)FooApi
impl factory usingKtorfit.create*()
, in code defined incommonMain
.:desktop-app
:android-app
The
_FooApiImpl.kt
class is generated inlib1/build/generated/ksp/jvm/jvmMain/kotlin
, it appears that because of this, I can't reach the class from:shared/src/commonMain/kotlin
.Is there a way to tweak where the code is generated, or alternatively, generate it in
commonMain
?