Does anyone know if there's an Android Studio plug...
# compose
a
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
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
I'd like to export all previous, so right clicking every preview is out of question
f
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
Came here to say that I believe showkase will now create image for every preview.
s
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
Showkase exports screenshot tests via paparazzi I thought? At least that's what the maintainer said on Twitter
s
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!