https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
h

Henri Gourvest

10/02/2023, 3:34 PM
Hi, I can't find an answer to my question, can we use Kotlin Native instead of the JVM in Compose Desktop?
c

ckloss

10/02/2023, 3:43 PM
I don't think so. Compose Desktop is built on top of AWT and therefore needs the JVM.
e

Edoardo Luppi

10/02/2023, 3:45 PM
No you can't unfortunately.
h

Henri Gourvest

10/02/2023, 3:46 PM
that makes sense, but then how does it work on IOS? I don't think the JVM is authorized 🙂
e

Edoardo Luppi

10/02/2023, 3:47 PM
Well I think the missing part is the linking process to output the native binaries for desktop targets. Probably most code can be reused
h

Henri Gourvest

10/02/2023, 3:51 PM
I see. I wonder if this is something that is being considered in the future.
o

Oleksandr Karpovich [JB]

10/02/2023, 4:28 PM
There is a k/native Compose artifacts for macos only. You can play with it if you want, but it's not even experimental, there is no actual plan to work on it, it just exists for internal reasons.
h

Henri Gourvest

10/03/2023, 5:41 AM
Thanks
4 Views