<@UHAJKUSTU> greetings. You do have `@Preview` ann...
# decompose
r
@Arkadii Ivanov greetings. You do have
@Preview
annotation in
decompose
samples. Do they work actually, or is there any hack around KMP to use preview feature yet? Please, share.
a
Just checked, they work just fine. You need to install Compose Multiplatform IDEA plugin. The annotation shows an error in the IDE though, see https://youtrack.jetbrains.com/issue/KT-55631.
l
I noticed that you created the folder structure to expect it in the same place as the compose version. I think the error would go away if you put it in your own package structure, with a typealias for the actuals. I do this with the Keep annotation.
a
Nope, it doesn't go away. I think the bug only happens if there are only android and JVM targets configured. Perhaps something related to commonizer not supporting that pair of targets.
r
@Arkadii Ivanov trying to copy the way it is made in
Decompose
, just empty Preview surface is shown...
OK, I understand this is nothing about
Decompose
itself, just tried to make
@Preview
work...
Seems like when I'm using
@Preview
annotation, it imports from gradle included lib, but needs to be taken from that
expect
fun that you mentioned.
a
That's not a fun, that's an annotation. Also KMP has terrible support of included builds, AFAIK. You can try copying the expect annotation to your module just to try.