I'm trying to add ktorfit to a shared networking m...
# multiplatform
c
I'm trying to add ktorfit to a shared networking module that I'm building out. It requires ksp, and im following the docs, but gradle doesn't seem to like my invocation of them. any thoughts? https://foso.github.io/Ktorfit/installation/
i
The dependency block for those ksp deps are for the module, not in your sourceset dependencies. aka just this
Copy code
dependencies {
   add("kspCommonMainMetadata", "....")
}
c
hm. not sure i understand the difference. deps for the module... not the sourceset? hmm 🤔
c
but yes, it at least compiles now. thanks for the tip
i
KSP is used by the compiler not by your built code, the difference is making it available to compiler vs shipping it with your code
c
ah. thanks. that makes sense.
👍 1
i
c
Got it working! woohoo!
🎉 1
I wonder how hard it'll be to try to get slacks eithernet library to play nice with ktorfit
s
@Colton Idle I have faced this issue I am using ktor along with Ktorfit
Is there any workaround? @ian.shaun.thomas
i
You probably want to start another thread and run that with the stacktrace flag on. Not much information there to go on.
👍 2