Cross posting this question here - Specifically wo...
# compose
d
Cross posting this question here - Specifically wondering about Android studio https://kotlinlang.slack.com/archives/C3PQML5NU/p1719598421118239
d
Yes I'm also interested in this together with screenshot/snapshot testing of the previews. Jetpack compose screenshot testing requires a separate sourceset(commonMain/androidMain/screenshotTest)for the snapshot testing so code is now duplicated 3 times. Tried paparazzi but couldn't get it to work with KSP this would reduce it to 2 places. But that is still 1 too many. Also resource loading should be fixed for previews. Loading custom fonts defined in common cause Android previews to fail
r
Every time this is asked the response from JB and Google is that there are no plans, unfortunately. Which is a bit disappointing, as Fleet in my experience is not ready for developing production code.
t
there is a trick to get the desktop preview in commonMain the idea is to use expect annotation more details here: https://tahaben.com.ly/2024/07/how-to-preview-your-ui-in-compose-multiplatform-android-studio-intellij/
👏 1
🙌 3
👀 1
r
Amazing, thank you @Taha!