Skip to content

Commit

Permalink
Update roborazzi to v1.24.0 (#1541)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[io.github.takahirom.roborazzi](https://github.com/takahirom/roborazzi)
| plugin | minor | `1.23.0` -> `1.24.0` |
|
[io.github.takahirom.roborazzi:roborazzi-junit-rule](https://github.com/takahirom/roborazzi)
| dependencies | minor | `1.23.0` -> `1.24.0` |
|
[io.github.takahirom.roborazzi:roborazzi-compose](https://github.com/takahirom/roborazzi)
| dependencies | minor | `1.23.0` -> `1.24.0` |
|
[io.github.takahirom.roborazzi:roborazzi](https://github.com/takahirom/roborazzi)
| dependencies | minor | `1.23.0` -> `1.24.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>takahirom/roborazzi (io.github.takahirom.roborazzi)</summary>

###
[`v1.24.0`](https://github.com/takahirom/roborazzi/releases/tag/1.24.0)

[Compare
Source](https://github.com/takahirom/roborazzi/compare/1.23.0...1.24.0)

##### New feature: Support for includePrivatePreviews in Compose Preview
Support

Compose Preview Support, initially released in version 1.22.0, now
includes the `includePrivatePreviews` option. This feature allows you to
include private previews in your Compose Preview Support setup. You can
enable this by setting `includePrivatePreviews` in
`roborazzi.generateComposePreviewRobolectricTests.includePrivatePreviews`.
Thank you for submitting this feature request,
[@&#8203;yuchan2215](https://github.com/yuchan2215) !

##### New feature: JUnit rule support in ComposePreviewTester

We've enhanced ComposePreviewTester to support JUnit rules. Previously,
ComposePreviewTester lacked lifecycle hooks, which made certain
scenarios challenging to handle. Now, you can pass your own Test rules,
including your Compose Test Rule, and use them in tests. For a sample
implementation, check out [this integration
test](https://github.com/takahirom/roborazzi/blob/2519f46ec0e5a8dadc5139ae833e2925c90c8b21/include-build/roborazzi-gradle-plugin/src/integrationTest/projects/sample-generate-preview-tests/src/test/java/com/github/takahirom/sample/CustomPreviewTester.kt).

##### Breaking changes for users of the `ComposePreviewTester` interface

As we continue to improve Compose Preview Support, we've made some
changes to the `ComposePreviewTester` interface. These changes introduce
a breaking change for current users.

ComposePreviewTester is an interface for modifying the behavior of
Compose Preview Support. Previously, the API was prone to breaking
changes with each new option added. We've addressed this issue by
introducing a new `options()` function. However, this necessitates a
change in how you use the interface.

Old interface:

```kotlin
fun previews(vararg packages: String): List<ComposablePreview<T>>
```

New interface (Packages can now be accessed via
`options().scanOptions.packages`):

```kotlin
fun previews(): List<ComposablePreview<T>>
```

##### Acknowledgments

We'd like to extend our sincere thanks to
[@&#8203;yschimke](https://github.com/yschimke) and
[@&#8203;sergio-sastre](https://github.com/sergio-sastre) for their
valuable design reviews and insightful feedback, which greatly
contributed to the improvements in this release.

##### What's Changed

- \[Idea Plugin] Improve performance of idea plugin by
[@&#8203;takahirom](https://github.com/takahirom) in
[https://github.com/takahirom/roborazzi/pull/439](https://github.com/takahirom/roborazzi/pull/439)
- \[Idea Plugin] Prepare for release of IntelliJ IDEA plugin by
[@&#8203;takahirom](https://github.com/takahirom) in
[https://github.com/takahirom/roborazzi/pull/442](https://github.com/takahirom/roborazzi/pull/442)
- \[Idea Plugin] Tweak idea plugin UI by
[@&#8203;takahirom](https://github.com/takahirom) in
[https://github.com/takahirom/roborazzi/pull/443](https://github.com/takahirom/roborazzi/pull/443)
- \[Feature, Breaking Changes] Support includePrivatePreviews of
ComposablePreviewScanner by
[@&#8203;takahirom](https://github.com/takahirom) in
[https://github.com/takahirom/roborazzi/pull/445](https://github.com/takahirom/roborazzi/pull/445)
- \[Docs] Add mention to the sample in Compose Preview Support document
by [@&#8203;takahirom](https://github.com/takahirom) in
[https://github.com/takahirom/roborazzi/pull/448](https://github.com/takahirom/roborazzi/pull/448)
- \[Docs] Fix URL of the README link by
[@&#8203;takahirom](https://github.com/takahirom) in
[https://github.com/takahirom/roborazzi/pull/449](https://github.com/takahirom/roborazzi/pull/449)

**Full Changelog**:
takahirom/roborazzi@1.23.0...1.24.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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 has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44LjMiLCJ1cGRhdGVkSW5WZXIiOiIzOC44LjMiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
  • Loading branch information
slack-oss-bot authored Jul 29, 2024
1 parent db719e8 commit c5bb0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ okio = "3.9.0"
paparazzi = "1.3.4"
picnic = "0.7.0"
robolectric = "4.13"
roborazzi = "1.23.0"
roborazzi = "1.24.0"
skie = "0.8.3"
spotless = "6.23.3"
sqldelight = "2.0.2"
Expand Down

0 comments on commit c5bb0f6

Please sign in to comment.