:wave: with `1.13.0-alpha01`, the dependency `com...
# compose-desktop
b
๐Ÿ‘‹ with
1.13.0-alpha01
, the dependency
compose.desktop.currentOs
is deprecated and says it's no longer needed and can simply be removed. But if I do that,
androidx.compose.ui.window.*
imports are no longer found. I suppose another dependency is needed instead? [Looks like the KMP wizard/template still uses that dependency]
Ah looks like it's
org.jetbrains.compose.desktop:desktop-jvm
All good โœ…
๐Ÿ‘ 1
h
๐Ÿ‘‹ Do you have
org.jetbrains.compose.ui:ui
explicitly added as a dependency anywhere for desktop/common? The
org.jetbrains.compose.desktop:desktop-jvm
module doesn't contain anything special by itself. If you look at it, it's mostly a collection of deprecated declarations. What it does however, is transitively pull in other Compose modules such as Compose UI. There should be no need for a desktop-specific dependency anymore. Instead, you can declare the required Compose dependencies explicitly just as you would for other targets
b
But in which dependency is
androidx.compose.ui.window.*
? That's Desktop specific, right?
(my
desktop
module depends on my
shared
module, which depends on
org.jetbrains.compose.ui:ui
, but as
implementation
, not as
api
)
blob no problem 1
indeed removing
org.jetbrains.compose.desktop:desktop-jvm
and making the
ui
one as
api
worked. Not sure I understand why though ๐Ÿ˜…
ah window is in
org.jetbrains.compose.ui:ui-desktop
. Ok makes sense โœ… Thanks!
h
(my
desktop
module depends on my
shared
module, which depends on
org.jetbrains.compose.ui:ui
, but as
implementation
, not as
api
)
You can just add
org.jetbrains.compose.ui:ui
with implementation as a replacement of
currentOs
then. I believe this is what
webApp
from KMP wizard has for web target which also needs
androidx.compose.ui.window.*
๐Ÿ‘ 1
b
indeed I see I have it on my browser target (and I did use the wizard for this project) ๐Ÿ‘
๐Ÿ‘Œ 1