You are currently viewing Kotlin Multiplatform: Android + BE (ktor)

Kotlin Multiplatform: Android + BE (ktor)

I’m planning on developing a native Android app that’s to communicate with a Ktor-based Back-end app. I want to reuse the api-layer models between both apps.

To do that I was planning on using Kotlin Multiplatform to share the parts of the code. I never used it and found tutorials and guides for Kotlin Multiplatform Android+iOS and Web-server+Web-client (Jvm+Js). I couldn’t find any info on how to use Kotlin Multiplatform for Ktor Web-server(Jvm) + Android.

Does anyone know of any ways to reuse it? If I don’t find help here, I will probably just provide the models as Maven library with proper versioning instead of working as a mono-repo.

submitted by /u/jul3q
[link] [comments]