Hi, all. Is this a good place to ask questions abo...
# compose
d
Hi, all. Is this a good place to ask questions about building cross-platform UIs with KMM? I’m hoping so.
o
This channel is mostly Android. Check #compose-ios for more KMM focused topics
c
There’s also #multiplatform
Though that may be more KMP
d
I’ll be honest, I’m not sure where to begin with Kotlin. I’m just getting started with an open source project and I want to target both iOS and Android with it.
What’s the best approach to get a foundation started for running on both?
c
I don’t actually have any experience with that, but you’ll find people here who do, good luck
d
TY.
c
If you're just getting started, but want kmm with ios and android 1. download android studio 2. open AS and go through the wizard, then install the KMM plugin 3. create a new project and select KMM Run app on android and iOS. DONE!
Of course im simplifying here. but. I think there are two things to really separate out. 1. kotlin multiplatform which is what will allow you to write and deploy to ios and android. but ios and android can be written in the "old" ui toolkits. #multiplatform is your friend 2. compose multiplatform - if you want to share UI then this is what you need and so probably hang around in #compose-ios for pointers
KMM or #kmm (archived) was the old school name for kotlin multiplatform mobile, but they retired that name I think. i only ever built one android/ios app for kmm/#multiplatform using this course as a guide. its a paid course. but the instructor is easy going and straight to the point. https://codingwithmitch.com/courses/kotlin-multiplatform-mobile/
but again. none of this has anything to do with shared compose UI. for that you'll need #compose-ios to work. I've never done that. I have done shared compose code for android + desktop though with #compose-desktop cheers mate. hope you find your path.
d
@Colton Idle Thanks for the response. I’m acquainted at this point with Kotlin and Android Studio (long time IJ user). My main goal ATM is to see if there’s a way to build the UX using one code set and have that work on both iOS and Android. Compose seems like’s it’s possible to do that, and wanted to confirm so and get more detail on it.
e
https://touchlab.co/droidcon-nyc-ios-app-with-compose/ is one codebase for both Android and iOS
c
@Darryl Pierce cool. then i have the same question as you. hahaha. ive built some tinny thing with ios and android in kmm, but I didn't share composables. curious if thats possible. ill find out with ya i guess.