Alex Styl
12/06/2023, 12:23 PMimplementation(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?Oleksandr Karpovich [JB]
12/06/2023, 12:31 PMcurrentOs
will produce a build to run only on your system - https://github.com/JetBrains/compose-multiplatform/blob/master/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt#L144
The system OS and architecture is detected for you:
https://github.com/JetBrains/compose-multiplatform/blob/master/gradle-plugins/comp[…]src/main/kotlin/org/jetbrains/compose/internal/utils/osUtils.ktMichael Paus
12/06/2023, 12:32 PMAlex Styl
12/06/2023, 1:01 PMcurrentOs
value and it printed out something related to the architecture of the jdk i was using