Hi, a couple of months ago I tried out KMM (and go...
# multiplatform
r
Hi, a couple of months ago I tried out KMM (and got some really good help here, thanks@), I had a few issues notably deploying on iOS did not work reliably. Anyway, the world of KMM moves fast and I;m sure there is a new IDE version and libs to use. I want to create a KMM lib that does network calls as a first step. My question is, if I was to start from scratch what route do you recommend? The sample KMM project generated by Android STudio in the latest Arctic Fox (or some other version?) Or should i try the KampKit?
s
I started off by cloning https://github.com/Kotlin/kmm-production-sample , removing everything I don't need and build on top of that another app.
r
how long ago?
s
There is nothing left from the original app in my case, but it's a really great starting point.
I started my work in July
r
was your project outputting android and ios?
in my case I want to create a lib for importing into existing ios/android projects
would this sample be useful if thats my sceanrio?
s
My project uses Compose for Desktop (see compose-jb on GitHub) and my targets are JVM (Windows & MacOS), Android, iOS and macOS (native with SwiftUI)
I basicly merged the compose-jb template into the kmm-production-sample
I hope that one day my company may allow me to contribute back a stripped version of my app back as a template for others
r
what version of AS are you using?
s
Normally Android Studio Arctic Fox Stable ARM64 works best. Not so much luck with original IDEA or other versions. Right now I'm using the Intel version of AS which is much slower, but ARM64 is currently broken on macOS 12 Beta - which I need because I use Swifts new async/await feature
While other things are still in beta/alpha and have problems I feel that Kotlin/Native at its core is pretty stable and production ready.
🙌 1
k
KaMPKit is also a good option (but we maintain it, so of course I'd say that)
You will generally get quick answers to KaMPKit questions, although obviously there are other good sample apps now. We built KaMPKit when there weren't as many.
For ios/Android, definitely KaMPKit will be good, as that's what it's designed for.