Are people build Android, iOS and Desktop apps in ...
# multiplatform
k
Are people build Android, iOS and Desktop apps in the same project (KMM with Desktop I guess)? If so, is there a template or a sample application I could look at?
d
I don't have a sample App I can share but, yes, I've supported these three platforms in a couple of projects now; it's well within KMP's capability and quite 'ergonomic'.
In the case of one of the projects; we didn't even have a firm plan to put the Desktop to production (though curious about the possibility). Since Desktop is so fast to compile and launch vs. mobile platforms it often served as our Dev platform (using Compose Multiplatform for UI).
Just thought that might be of interest.
y
joreilly/PeopleInSpace: Kotlin Multiplatform project with SwiftUI, Jetpack Compose, Compose for Wear, Compose for Desktop, Compose for Web and Kotlin/JS + React clients along with Ktor backend. (github.com)
There is a open source on github.
m
Or you just take the official templates from JetBrains. https://github.com/JetBrains/compose-multiplatform/tree/master/templates
k
Thanks all (looking at the official template it doesn’t look like it have iOS in there, just android and desktop, unless I’m looking at the wrong one or missing something in the multiplatform-template)
k
m
@John O'Reilly has also Confetti: https://github.com/joreilly/Confetti 😁
l
There's a mobile template https://github.com/JetBrains/compose-multiplatform-ios-android-template. It'd probably be easier to add desktop to that.
x
t
The template you find is in experimental https://github.com/JetBrains/compose-multiplatform-template
s