Has anyone successfully used `@Preview` annotation...
# compose
z
Has anyone successfully used
@Preview
annotations to generate screenshots for the play store? This was a #showerthought but its been a few hours and I havent been able to pick it apart yet. Seems like an easy approach, as compared to generating all that fake data. Any cons, besides it being very tied to compose (which I dont mind ❤️)?
l
I think Paparazzi is pretty common for this use case.
z
Ive heard plenty about it but never played around with it. Seems promising, thank you!
a
You can use Airbnb's compiler plugin for Showkase/Paparazzi to generate screenshot tests from
@Preview
. You could do something similar to generate Play Store screenshots. https://github.com/android/nowinandroid/pull/101
z
Thanks Andrew, Ill check that out as well!
a
@Landry Norris Really? Is Paparazzi able to generate high-resolution image without navigation bar? Paparazzi is a great tool for screenshot tests but I don't think it fits this use case at all. Creating a preview function with dummy data and copying the image in AS is much better and simpler.