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

Alex Styl

12/06/2023, 12:23 PM
How does
implementation(compose.desktop.currentOs)
work? I am building my mac app on my m1 machine. would I need to figure out a way to use
implementation(compose.desktop.macos_arm64)
or
implementation(compose.desktop.macos_x64)
depending on whether I am building for intel or m1, or does
currentOs
figures that part out?
m

Michael Paus

12/06/2023, 12:32 PM
As far as I remember it uses the environment defined by the JDK that gradle is running on. So it should work for what you are trying to do.
💯 1
a

Alex Styl

12/06/2023, 1:01 PM
Michael is right. i printed the
currentOs
value and it printed out something related to the architecture of the jdk i was using
6 Views