Question regarding <https://github.com/cashapp/pap...
# squarelibraries
a
Question regarding https://github.com/cashapp/paparazzi before I dive in. My use case: I’d like to write a task/script to generate screenshots of project’s custom Views/ViewGroups for documentation purposes, without running the app or manually capturing Android Studio’s preview. Is Paparazzi a tool that would potentially help me do that? If not, is there an alternative?
w
Just fyi alternatives that are rather stable at this point would be https://github.com/facebook/screenshot-tests-for-android and https://github.com/karumi/shot
k
Yes, that's basically what paparazzi does
It doesn't require full Android toolchain to render widgets, unlike the libraries mentioned above
Essentially you can test your widgets in JVM environment
I’d recommend checking out @jrod’s talk for more details https://www.droidcon.com/media-detail?video=362742507
Do note though that even though it’s open source it’s at a very early stage of development, so if you encounter issues please checkout issues tab or file a new one!
t
I need to look closer at paparazzi, things like
setLayerType(LAYER_TYPE_SOFTWARE, paint)
won’t draw correctly in studio preview so is it victim to the same?
a
Great, thank you for your replies!