https://kotlinlang.org logo
#amper
Title
# amper
d

darkmoon_uk

12/07/2023, 6:51 AM
Should I expect the Compose Desktop Preview to work out-of-the-box with an Amper configuration? I've installed the relevant plugins in the IDE (Latest IntelliJ CE), but no preview... ...is this a bug/missing feature with how Amper manages the Compose dependencies?
i

Ilya Evtushenko

12/07/2023, 4:49 PM
Thanks for giving Amper a try in the first place. Yes, it should work. I checked it with compose-desktop project from Amper examples. Could you provide more context on your case, please? Do you have Compose Multiplatform IDE Support plugin installed? If so, do you see a gutter icon next to an annotated composable function? Are you using
@Preview
in
jvm
or any other source set?
a

aurelien

01/14/2024, 12:56 PM
Hello, the @Preview annotation can not be imported (on the demo android project). I had to enable gradle interop, and add
buildFeatures *{*
compose = true
}
Then I had to align compose version with the kotlin compiler version, by using the https://androidx.dev/storage/compose-compiler/repository/ dependency management.
8 Views