https://kotlinlang.org logo
#compose
Title
# compose
a

aoriani

05/10/2022, 3:01 AM
Does anyone know if there's an Android Studio plugin or something similar that could export the images for every preview? It would be helpful to share preview with designers.
2
x

xxfast

05/10/2022, 3:20 AM
is this what you are looking for?
or something more automated, like a gradle task that can look through all
@Preview
composables and export to a folder?
a

aoriani

05/10/2022, 3:30 AM
I'd like to export all previous, so right clicking every preview is out of question
f

Filip Wiesner

05/10/2022, 10:00 AM
I've never used it and don't know much about it but there is a Showkase library for managing previews. I don't even know if it can do what you asked but hey, it's something.
c

Colton Idle

05/10/2022, 3:22 PM
Came here to say that I believe showkase will now create image for every preview.
s

Sterling Albury

05/13/2022, 1:27 AM
looks like we have to view the composables from an app with showkase. i'd be interested in finding some kind of automated way to generate an image from a composable source set. i was originally looking to have a gradle task do it but I think it might be easier as an intellij plugin if it is possible.
c

Colton Idle

05/13/2022, 1:30 AM
Showkase exports screenshot tests via paparazzi I thought? At least that's what the maintainer said on Twitter
s

Sterling Albury

05/13/2022, 2:09 AM
Ah, in the coming soon section it says it'll have some hooks for screenshot testing. Maybe it's already in? It also says that "generating a web version of the Showkase browser with documentation, search and screenshots."... that'll be perfect!
3 Views