with the release of 1.10.0-rc02, the Preview annot...
# compose
c
with the release of 1.10.0-rc02, the Preview annotation is supposed to work in
commonMain
source sets now right? Is there a particular AS version this works with?
1
d
commonMain preview support was added in AS Narwhal I think
s
Make sure to add a dependency on
org.jetbrains.compose.ui:ui-tooling
to your android debug target.
Working with the debug target is a bit weird on newer KMP versions, should be something like:
Copy code
kotlin.sourceSets.invokeWhenCreated("androidDebug") {
            dependencies {
                implementation(libs.compose.ui.tooling)
            }
        }
c
so I'm working on a project with no android output- I've been able to get the dependencies to resolve and now I have a composable preview, but the IDE (Otter feature drop 2) doesn't display the preview chrome for my file in
commonMain