What are your best practizes for viewing the compo...
# multiplatform
m
What are your best practizes for viewing the composables in common code? I have tried creating a package in android part with all previews but it takes a few minutes for each component. is there a better way?
plus1 2
r
Use desktop preview
m
as i understand it, that only helps if you are developing for desktop and not iOS + Android
r
Just add a jvm target, if it's only for previewing purposes you don't need a lot of configuration
m
Are we looking at the same problems? i am aware i can use a preview in my Android src (and now desktop) and splitscreen it to get a preview of it but i find that to be too much configuration on the Android src side. My goal is to have it in the common src.
j
Jetbrains working on it. Its not easy because how layoutlib, Android Gradle plugin and Androidx things work in Intellij/IDE setups. Similar problem that Bazel not having preview working either. Its not decoupled tools can easy inject in a plugin. I understand the frustration, also want Live Preview in commonMain. Even if its Android preview I dont care as long as working with jetbrains resources library (that doesnt work in androidMain today, like loading images. I do understand its complex but have hopes Jetbrains solves it.
m
Thanks 👍