paparazzi
paparazzi copied to clipboard
Render your Android screens without a physical device or emulator
**Description** The theme is device specific, at least for Wear, which should use something like @android:style/Theme.DeviceDefault or @android:style/ThemeOverlay.Material.Dark, but shouldn't have a NavigationBar. ``` class Paparazzi @JvmOverloads constructor( private val...
Adds support by encoding a temp mov during verification and then comparing the golden mov to the temp mov by decoding/comparing each frame. This yielded better accuracy than comparing an...
**Description** I have a composable with ```kotlin val animatedImage = AnimatedImageVector.animatedVectorResource(R.drawable.avd_check) ``` A simple testing with ```kotlin paparazzi.snapshot { MyComposable() } ``` causes a unit test crash: ``` java.lang.NullPointerException: res.getXml(resId)...
Fixes images generated at 999, instead of 1000.
Android Studio can render composables with the `@Preview` annotation with the render canvas sized to fit the composable or the dimensions specified in the preview annotation. It would be nice...
During our hack week, we used `com.android.ide.common.resources.deprecated.ResourceRepository` mainly due its simplicity -- pass it a file path to a resource source set directory, and it will parse and load the...
**Description** Running `./gradlew verifyPaparazziRelease --rerun-tasks` always passes. Except the images change and the report shows the difference. **Expected behavior** verifyPaparazziRelease after changing a composable should fail. **Additional information:** - Paparazzi...
**Description** After using paparazzi successfully for some hours, suddenly both `./gradlew verifyPaparazziDebug` and `./gradlew verifyPaparazziDebug` are skipped with the following output from `--info`: > Task :lottery:recordPaparazziDebug UP-TO-DATE Skipping task ':lottery:recordPaparazziDebug'...
This is the modern way to do it in Gradle as is project isolation compatible.
Setting up a DeviceConfig with NightMode.NIGHT, renders identical to NightMode.NOT_NIGHT. ie it does not make a difference and my Composable cannot be rendered in nightmode. ``` @get:Rule val paparazzi =...