https://kotlinlang.org logo
Title
k

kevin

04/02/2023, 12:18 PM
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

darkmoon_uk

04/02/2023, 1:06 PM
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

Yuchuan Gu

04/02/2023, 2:29 PM
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

Michael Paus

04/02/2023, 3:45 PM
Or you just take the official templates from JetBrains. https://github.com/JetBrains/compose-multiplatform/tree/master/templates
k

kevin

04/02/2023, 4:23 PM
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

Konstantin Tskhovrebov

04/02/2023, 4:35 PM
m

Marcello Galhardo

04/02/2023, 11:19 PM
@John O'Reilly has also Confetti: https://github.com/joreilly/Confetti 😁
l

Landry Norris

04/03/2023, 1:37 AM
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

xxfast

04/03/2023, 1:59 AM
t

Thịnh Nguyễn Phùng

04/03/2023, 7:55 AM
The template you find is in experimental https://github.com/JetBrains/compose-multiplatform-template
s

Saud Khan

04/06/2023, 11:05 PM