Skip to content

Commit 8bae954

Browse files
fix(deps): update roborazzi to v1.50.0 (#537)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [io.github.takahirom.roborazzi](https://redirect.github.com/takahirom/roborazzi) | `1.46.1` -> `1.50.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.takahirom.roborazzi:io.github.takahirom.roborazzi.gradle.plugin/1.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.github.takahirom.roborazzi:io.github.takahirom.roborazzi.gradle.plugin/1.46.1/1.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.github.takahirom.roborazzi:roborazzi-junit-rule](https://redirect.github.com/takahirom/roborazzi) | `1.46.1` -> `1.50.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.takahirom.roborazzi:roborazzi-junit-rule/1.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.github.takahirom.roborazzi:roborazzi-junit-rule/1.46.1/1.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.github.takahirom.roborazzi:roborazzi-compose](https://redirect.github.com/takahirom/roborazzi) | `1.46.1` -> `1.50.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.takahirom.roborazzi:roborazzi-compose/1.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.github.takahirom.roborazzi:roborazzi-compose/1.46.1/1.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.github.takahirom.roborazzi:roborazzi](https://redirect.github.com/takahirom/roborazzi) | `1.46.1` -> `1.50.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.takahirom.roborazzi:roborazzi/1.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.github.takahirom.roborazzi:roborazzi/1.46.1/1.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>takahirom/roborazzi (io.github.takahirom.roborazzi)</summary> ### [`v1.50.0`](https://redirect.github.com/takahirom/roborazzi/releases/tag/1.50.0) [Compare Source](https://redirect.github.com/takahirom/roborazzi/compare/1.49.0...1.50.0) **Fixed:** Resolved Gradle task dependency errors with Android Gradle Plugin 8.12+ where `GenerateComposePreviewRobolectricTestsTask` output was used by compilation tasks without explicit dependencies. Thank you [@&#8203;papo2608](https://redirect.github.com/papo2608) for reporting this issue. ##### What's Changed - Add CONTRIBUTING.md by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/730](https://redirect.github.com/takahirom/roborazzi/pull/730) - Fix cross-variant KSP task dependency issue with AGP 8.12+ by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/735](https://redirect.github.com/takahirom/roborazzi/pull/735) - Add integration test to reproduce GitHub Issue [#&#8203;732](https://redirect.github.com/takahirom/roborazzi/issues/732) by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/734](https://redirect.github.com/takahirom/roborazzi/pull/734) **Full Changelog**: takahirom/roborazzi@1.49.0...1.50.0 ### [`v1.49.0`](https://redirect.github.com/takahirom/roborazzi/releases/tag/1.49.0) [Compare Source](https://redirect.github.com/takahirom/roborazzi/compare/1.48.0...1.49.0) ##### ComposablePreviewScanner 0.7.0 Compatibility Update ##### Breaking Change - Compatibility Update Required This release addresses a breaking compatibility issue with **ComposablePreviewScanner 0.7.0** that affects users of Roborazzi's [Preview support feature](https://takahirom.github.io/roborazzi/preview-support.html). ##### The Problem When using ComposablePreviewScanner 0.7.0 with previous versions of Roborazzi, you'll encounter `NoSuchMethodError` at runtime. This happens because: - **Method relocation**: ComposablePreviewScanner 0.7.0 moved methods from `AndroidPreviewScreenshotIdBuilder` to provide common `PreviewScreenshotIdBuilder` methods for Glance and Compose Multiplatform - **Import mismatch**: Previous Roborazzi versions contain generated code with outdated import statements - **Runtime failure**: Auto-generated Roborazzi tests from Previews crash when trying to execute methods at their old locations ##### The Solution This Roborazzi update replaces the old method calls and import statements with new ones compatible with ComposablePreviewScanner 0.7.0+. However, since these new method locations don't exist in ComposablePreviewScanner 0.6.x, you must update both libraries together. ##### ⚠️ Required Action If you use Roborazzi's Preview support, you must: - ✅ **Update Roborazzi to this version** - ✅ **Update ComposablePreviewScanner to 0.7.0 or later** Both updates are required - updating only one will cause build or runtime errors. ##### Migration Steps ```kotlin // Update both dependencies together implementation "io.github.takahirom.roborazzi:roborazzi:1.49.0" implementation "io.github.sergio-sastre.ComposablePreviewScanner:android:0.7.0" // or newer ``` ##### Improved Error Detection We've added clear build-time error messages to help you identify when this compatibility issue occurs, so you'll know exactly what needs to be updated instead of encountering cryptic runtime errors. ##### Common Update Scenarios **Scenario 1**: Update only ComposablePreviewScanner to 0.7.0\ → `NoSuchMethodError` with old Roborazzi. Update Roborazzi to resolve. **Scenario 2**: Update only Roborazzi\ → Compile-time error with clear message to update ComposablePreviewScanner ✅ ##### Acknowledgments Thanks to [@&#8203;sergio-sastre](https://redirect.github.com/sergio-sastre) for collaboration on resolving this compatibility challenge and maintaining the ComposablePreviewScanner library. ##### What's Changed - \[CI]Add .coderabbit.yaml by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/725](https://redirect.github.com/takahirom/roborazzi/pull/725) - Require ComposablePreviewScanner 0.7.0+ with version validation by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/722](https://redirect.github.com/takahirom/roborazzi/pull/722) - \[Refactor]Centralize SDK versions by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/723](https://redirect.github.com/takahirom/roborazzi/pull/723) **Full Changelog**: takahirom/roborazzi@1.48.0...1.49.0 ### [`v1.48.0`](https://redirect.github.com/takahirom/roborazzi/releases/tag/1.48.0) [Compare Source](https://redirect.github.com/takahirom/roborazzi/compare/1.47.0...1.48.0) ##### Fix Preview Size Retention Bug Fixed issue where `@Preview` annotation size attributes (heightDp/widthDp) incorrectly persisted between captures ##### Problem Subsequent previews without explicit size would inherit dimensions from previous previews instead of using defaults. ##### Solution Save and restore Robolectric qualifiers properly in captureRoboImage() to ensure preview size isolation. Thanks to [@&#8203;smuldr](https://redirect.github.com/smuldr) for reporting this issue! ##### Breaking Changes: Update Libraries You can see the changes at: https://github.com/takahirom/roborazzi/actions/runs/16952566040 Overall, we are now using Kotlin 2.0.21. We don't chase the latest versions, but we want to add tests using the latest Compose Multiplatform Previews. Thank you for letting me know about this! [@&#8203;sergio-sastre](https://redirect.github.com/sergio-sastre) ##### What's Changed - Update dependency androidx.compose.material3:material3 to v1.3.2 by [@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in[https://github.com/takahirom/roborazzi/pull/673](https://redirect.github.com/takahirom/roborazzi/pull/673)3 - Update Gradle, AGP and Kotlin versions by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/718](https://redirect.github.com/takahirom/roborazzi/pull/718) - Fix preview size retention bug by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/721](https://redirect.github.com/takahirom/roborazzi/pull/721) **Full Changelog**: takahirom/roborazzi@1.47.0...1.48.0 ### [`v1.47.0`](https://redirect.github.com/takahirom/roborazzi/releases/tag/1.47.0) [Compare Source](https://redirect.github.com/takahirom/roborazzi/compare/1.46.1...1.47.0) #### Compose Preview Tester Customization Added `Capturer` interface to `AndroidComposePreviewTester` for customizing capture behavior ([#&#8203;716](https://redirect.github.com/takahirom/roborazzi/issues/716)). This allows setting custom comparison thresholds and other RoborazziOptions for [generated Compose preview tests.](https://takahirom.github.io/roborazzi/preview-support.html) ```kotlin import com.dropbox.differ.SimpleImageComparator import com.github.takahirom.roborazzi.* @&#8203;ExperimentalRoborazziApi class MyCustomComposePreviewTester( private val defaultCapturer: AndroidComposePreviewTester.Capturer = AndroidComposePreviewTester.DefaultCapturer() ) : AndroidComposePreviewTester( capturer = { parameter -> val customOptions = parameter.roborazziOptions.copy( compareOptions = parameter.roborazziOptions.compareOptions.copy( // Set custom comparison threshold (0.0 = exact match, 1.0 = ignore differences) imageComparator = SimpleImageComparator(maxDistance = 0.01f) ) ) defaultCapturer.capture( parameter.copy(roborazziOptions = customOptions) ) } ) ``` Fixes [#&#8203;703](https://redirect.github.com/takahirom/roborazzi/issues/703). Thanks [@&#8203;pavel163](https://redirect.github.com/pavel163) for the issue report and [@&#8203;sergio-sastre](https://redirect.github.com/sergio-sastre) for the review! #### What's Changed - Minor tweak to documentation for Groovy DSL by [@&#8203;smugleafdev](https://redirect.github.com/smugleafdev) in [https://github.com/takahirom/roborazzi/pull/715](https://redirect.github.com/takahirom/roborazzi/pull/715) - Add Capturer interface for customizing AndroidComposePreviewTester by [@&#8203;takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/716](https://redirect.github.com/takahirom/roborazzi/pull/716) #### New Contributors - [@&#8203;smugleafdev](https://redirect.github.com/smugleafdev) made their first contribution in [https://github.com/takahirom/roborazzi/pull/715](https://redirect.github.com/takahirom/roborazzi/pull/715) **Full Changelog**: takahirom/roborazzi@1.46.1...1.47.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:eyJjcmVhdGVkSW5WZXIiOiI0MS42MC40IiwidXBkYXRlZEluVmVyIjoiNDEuODEuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 28711b5 commit 8bae954

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ coreKtx = "1.16.0"
66
junit = "4.13.2"
77
junitVersion = "1.1.5" # This is to match Compose's version
88
robolectric = "4.15.1"
9-
roborazzi = "1.46.1"
9+
roborazzi = "1.50.0"
1010
espressoCore = "3.5.0" # This is to match Compose's version
1111
lifecycleRuntimeKtx = "2.9.2"
1212
activityCompose = "1.10.1"

0 commit comments

Comments
 (0)