In a kmp project where the server is being built in Ktor and the client consumes the API through ktor client, how can the declared type safe routes be shared between them, the artifacts for
Resources
on the server differs from the client
h
hfhbd
01/05/2024, 7:54 PM
It shouldn’t. Sounds like a bug. Can you share your code?
a
Aleksei Tirman [JB]
01/08/2024, 8:54 AM
What do you mean by artifacts?
r
Rudy Sulley
01/09/2024, 1:47 PM
I'm trying to use a shared
Resource
declaration in both the server and client.
Folder structure and file content are in the gist https://gist.github.com/ayitinya/f93868ae6f5c0b3fa03bebf7907326c7
On the client, it compiles without error, but fails on runtime, I resorted to using the strings in place or the Resources