Commit 86d269c
authored
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,
[@​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
@​Preview
@​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
@​RoboComposePreviewOptions(
manualClockOptions = [ManualClockOptions(advanceTimeMillis = 0L)]
)
```
Thank you for reporting this issue,
[@​savvasenok](https://redirect.github.com/savvasenok)!
##### What's Changed
- Add PreviewOnSizeChanged to reproduce issue
[#​768](https://redirect.github.com/takahirom/roborazzi/issues/768)
by [@​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
[@​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
[@​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
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments