Skip to content

Commit 86d269c

Browse files
Update roborazzi to v1.54.0 (#1687)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [io.github.takahirom.roborazzi](https://redirect.github.com/takahirom/roborazzi) | plugin | minor | `1.53.0` -> `1.54.0` | | [io.github.takahirom.roborazzi:roborazzi-core](https://redirect.github.com/takahirom/roborazzi) | dependencies | minor | `1.53.0` -> `1.54.0` | | [io.github.takahirom.roborazzi:roborazzi-compose-desktop](https://redirect.github.com/takahirom/roborazzi) | dependencies | minor | `1.53.0` -> `1.54.0` | --- ### Release Notes <details> <summary>takahirom/roborazzi (io.github.takahirom.roborazzi)</summary> ### [`v1.54.0`](https://redirect.github.com/takahirom/roborazzi/releases/tag/1.54.0) [Compare Source](https://redirect.github.com/takahirom/roborazzi/compare/1.53.0...1.54.0) ##### Breaking change: Report HTML and JSON paths have changed The HTML report used to be at `build/reports/roborazzi/index.html` but is now located at `build/reports/roborazzi/<build_variant>/index.html`. This is a first step toward fixing a long-standing issue where running `recordRoborazzi` (instead of `recordRoborazziDebug`) could break test results; further work is still needed to make it fully reliable. You should be able to fix it by adding `/debug/` (or your build variant) to the path in your CI script. I believe the change is straightforward, but if you run into any cases where it's difficult please let me know. **Note**: This change does **not** affect the paths of the generated screenshot images, so most users will not be impacted. Thank you for your contribution, [@&#8203;vladcudoidem](https://redirect.github.com/vladcudoidem)! ##### Behavioral change: Fixed screenshot timing for Compose Preview Support Previously, we used Espresso.onIdle() and ShadowLooper.idle(), but these APIs are not suitable for Compose. Consequently, screenshots could not be captured after onSizeChanged completed. ```kotlin @&#8203;Preview @&#8203;Composable fun PreviewOnSizeChanged() { var size by remember { mutableStateOf("unknown") } Box( modifier = Modifier .size(100.dp) .background(Color.Blue) .onSizeChanged { size = "${it.width}x${it.height}" } // Now invoked! (It used to be skipped.) ) { Text(text = size, color = Color.White) } } ``` If you encounter issues with infinite animations—such as `CircularProgressIndicator`—you can configure frame-based captures using `@RoboComposePreviewOptions`. ```kotlin @&#8203;RoboComposePreviewOptions( manualClockOptions = [ManualClockOptions(advanceTimeMillis = 0L)] ) ``` Thank you for reporting this issue, [@&#8203;savvasenok](https://redirect.github.com/savvasenok)! ##### What's Changed - Add PreviewOnSizeChanged to reproduce issue [#&#8203;768](https://redirect.github.com/takahirom/roborazzi/issues/768) by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/769](https://redirect.github.com/takahirom/roborazzi/pull/769) - Store HTML and JSON reports in flavored directories by [@&#8203;vladcudoidem](https://redirect.github.com/vladcudoidem) in [https://github.com/takahirom/roborazzi/pull/749](https://redirect.github.com/takahirom/roborazzi/pull/749) - Fix onSizeChanged recomposition not completing before capture by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/770](https://redirect.github.com/takahirom/roborazzi/pull/770) **Full Changelog**: takahirom/roborazzi@1.53.0...1.54.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNjQuMCIsInVwZGF0ZWRJblZlciI6IjM5LjI2NC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
1 parent c1b0c78 commit 86d269c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ nullawayGradle = "2.3.0"
3939
okhttp = "5.3.2"
4040
okio = "3.16.4"
4141
retrofit = "3.0.0"
42-
roborazzi = "1.53.0"
42+
roborazzi = "1.54.0"
4343
slack-lint = "0.11.1"
4444
sortDependencies = "0.16"
4545
spotless = "8.1.0"

0 commit comments

Comments
 (0)