If I'm making a KMP library using ktor in common c...
# multiplatform
r
If I'm making a KMP library using ktor in common code only, what targets do I add? I'm currently adding all the targets ktor supports and it takes a while to compile and set up the project which is why I'm wondering.
n
I think it depends on which platform you're targeting your app to run on. If only desktop, I will choose jvm
r
I want to support all targets that ktor supports
n
IIRC, Ktor supports all: desktop(jvm based), android, iOS, wasm
r
Yeah I'm adding all of those currently. Just wondering whether it's the right way to do so
n
I'm not sure what you meant by right way or not. If it works then it works 😄 Maybe this repository can help you: https://github.com/fethij/Rijksmuseum
👍 1
h
Yeah, you have to add/define all targets manually, there is no universal kotlin library option yet to only support common code.