https://kotlinlang.org logo
y

Yan Pujante

10/12/2022, 1:19 PM
Can somebody explain when/how compose desktop became compose multiplatform? Was there an announcement that I missed?
c

czuckie

10/12/2022, 1:21 PM
I don't think that statement is accurate
I think compose desktop would be a leaf off the branch of compose multiplatform
y

Yan Pujante

10/12/2022, 1:24 PM
The link at the top of this channel used to point to a "compose desktop" page. Now it is compose multiplatform. So something happened at some point to "merge" desktop/web together and rebrand the whole effort maybe?
c

czuckie

10/12/2022, 1:28 PM
I guess that might be the case, but I think desktop still exists
like if you were having problem with something you were building on desktop, you'd say you were having problems with compose desktop, rather than compose multiplatform, even if you were targeting android and web as well
i

Igor Demin

10/12/2022, 1:42 PM
Compose Multiplatform is a main product that allows to write applications for Desktop (stable), Android (stable), Web DOM (stable), Web Canvas (experimental), iOS (experimental), sharing a lot of code between them, if you want. You can also just write applications for a single platform, desktop for example. In this case you will be using Compose for Desktop, that have support specific for desktop (native distribution, window management, etc). This is similar to Kotlin Multiplatform. It unites Kotlin for Android, Kotlin for JVM, Kotlin for JS, Kotlin for iOS, etc.
j

Javier

10/12/2022, 2:00 PM
Is it possible to see which APIs are available for the canvas approach (web)?
maybe the androidx github repo?
i

Igor Demin

10/12/2022, 2:03 PM
You can look here in different modules. Web Canvas is built from
jsMain
,
jsNativeMain
,
skikoMain
,
commonMain
sourcesSets.
skikoMain
is also used by iOS and desktop,
commonMain
is also used by Android.
y

Yan Pujante

10/12/2022, 2:22 PM
The main page (Compose Multiplatform) does not talk about Android or iOS (just desktop and web) but glad to know that it is the end goal. Definitely would love to see an example of a truly multiplatform app (android / desktop / web)...
m

Michael Paus

10/12/2022, 2:26 PM
Just have a look here: https://github.com/JetBrains/compose-jb/tree/master/experimental/examples The falling-balls-mpp example would fit your criteria. It also covers iOS.
y

Yan Pujante

10/12/2022, 2:35 PM
It lacks android 😉
c

czuckie

10/12/2022, 9:17 PM
wait, the canvas support is a real thing and there is some experimental version of it?! This is huge!
d

darkmoon_uk

10/12/2022, 10:08 PM
@czuckie Do you mean canvas for Web or for iOS? Either way 'yes' - and yes, it is huge! 😁
c

czuckie

10/12/2022, 11:38 PM
I thought I dreamt up the idea of rendering compose to a canvas to avoid the dom, to have a cough flutter like delivery avenue for compose
I've scoured the web with my best google-fu but I've been unable to see anything yet so I'm a little bummed out, but glad to know it's coming. I'll be quick to adopt it and overlook any pain points in the short term 😂
d

darkmoon_uk

10/13/2022, 12:33 AM
You can already adopt it - it's a bit bleeding edge and requires some looking after, but (a small number of) folk are already delivering 'Flutter-like' outcomes with this 🙂
c

czuckie

10/13/2022, 10:09 AM
is there any open source projects I can look at to see what the development loop is like? The only way to describe my level of interest is 'major'
19 Views