1.56.0
Added AGP 9.0 compatibility to RoborazziPlugin
Roborazzi was previously using APIs and classes that have since been deprecated, such as Variant.unitTest and TestedExtension. We have now migrated to alternative, supported classes and methods. Thanks for reporting this, @allanconda-mercari !
Behavior changes: Stabilized preview LaunchedEffect execution for Compose Preview support
Previously, screenshots occasionally differed from Android Studio Composable Preview when using LaunchedEffect. We now invoke composeTestRule.mainClock.advanceTimeByFrame() by default, so some screenshots may appear different. You can restore the previous behavior by implementing a custom tester as follows:
composeRuleFactory = { createAndroidComposeRule<RoborazziActivity>() as AndroidComposeTestRule<ActivityScenarioRule<out ComponentActivity>, *> },
What's Changed
- Add AGP 9.0 compatibility to RoborazziPlugin by @takahirom in https://github.com/takahirom/roborazzi/pull/782
- Add effectDispatcherFactory for LaunchedEffect support by @takahirom in https://github.com/takahirom/roborazzi/pull/779
- Add PreviewFocusWithFocusGroup Preview to test focus state by @takahirom in https://github.com/takahirom/roborazzi/pull/778
Full Changelog: https://github.com/takahirom/roborazzi/compare/1.55.0...1.56.0