Commit 2bdcca6
authored
fix(deps): update roborazzi to v1.54.0 (#707)
This PR contains the following updates:
| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[io.github.takahirom.roborazzi](https://redirect.github.com/takahirom/roborazzi)
| `1.53.0` → `1.54.0` |

|

|
|
[io.github.takahirom.roborazzi:roborazzi-junit-rule](https://redirect.github.com/takahirom/roborazzi)
| `1.53.0` → `1.54.0` |

|

|
|
[io.github.takahirom.roborazzi:roborazzi-compose](https://redirect.github.com/takahirom/roborazzi)
| `1.53.0` → `1.54.0` |

|

|
|
[io.github.takahirom.roborazzi:roborazzi](https://redirect.github.com/takahirom/roborazzi)
| `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
[#​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
[#​749](https://redirect.github.com/takahirom/roborazzi/pull/749)
- Fix onSizeChanged recomposition not completing before capture by
[@​takahirom](https://redirect.github.com/takahirom) in
[#​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**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, 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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/EmergeTools/hackernews).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi42OS4xIiwidXBkYXRlZEluVmVyIjoiNDIuNjkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent ba581e0 commit 2bdcca6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments