maybe stupid (but short question): is true that re...
# multiplatform
i
maybe stupid (but short question): is true that retrofit, room, hilt, moshi are going to be supported in KMM because of the KSP && if true when?
j
• hilt only works with android so no • retrofit don’t use kapt, ksp changes nothing there. Retrofit was blocked by okio, not sure the current state of both.
i
thank you very much
someone showed me a page asserting the above questions, but was looking too good to be true and cannot find this page at the moment
m
Doesn't retrofit uses jvm proxies? That's a hard no for KMM
There are good KMM solutions for most of these problems though: • Json: kotlinx.serialization • Sql: SqlDelight • HTTP: ktor
j
Here is a good explanation from @jw about Retrofit and Multiplatform, https://github.com/square/retrofit/issues/3181#issuecomment-516677686 Not sure about the current state of art, but he is winning the date predictions 😂
m
showed me a page from documentation in ksp asserting the above questions
I'm guessing it's this page? https://kotlinlang.org/docs/ksp-overview.html#supported-libraries There are benefits to KSP beyond multiplatform in terms of build speed and tooling so it makes sense for Kotlin projects to move to KSP independently of KMM
f
I'm working on this project https://github.com/Foso/Ktorfit but there are some (yet) unresolved bugs
k
I’d be surprised if retrofit was ever supported, okio or not. There are multiple options, as mentioned above, and I’d argue (maybe) that the retrofit design was more Java than Kotlin focused and maybe would look different for Kotlin. Room and Hilt would be big lifts, but some Jetpack libraries getting experimental KMP support gives some hope. However, knowing Room better at least, it would be quite a bit of work. On Moshi, “We want the option to support multiplatform including Kotlin/Native” (https://github.com/square/moshi/issues/1252), but I haven’t heard much about it. However, from the original list, if we were making bets, I’d put money on Moshi 🙂
1
187 Views