Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.github.takahirom.roborazzi](https://redirect.github.com/takahirom/roborazzi) | `1.36.0` -> `1.37.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.takahirom.roborazzi:io.github.takahirom.roborazzi.gradle.plugin/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.github.takahirom.roborazzi:io.github.takahirom.roborazzi.gradle.plugin/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.github.takahirom.roborazzi:io.github.takahirom.roborazzi.gradle.plugin/1.36.0/1.37.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.36.0/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.github.takahirom.roborazzi:roborazzi-junit-rule](https://redirect.github.com/takahirom/roborazzi) | `1.36.0` -> `1.37.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.takahirom.roborazzi:roborazzi-junit-rule/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.github.takahirom.roborazzi:roborazzi-junit-rule/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.github.takahirom.roborazzi:roborazzi-junit-rule/1.36.0/1.37.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.36.0/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.github.takahirom.roborazzi:roborazzi-compose-desktop](https://redirect.github.com/takahirom/roborazzi) | `1.36.0` -> `1.37.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.takahirom.roborazzi:roborazzi-compose-desktop/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.github.takahirom.roborazzi:roborazzi-compose-desktop/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.github.takahirom.roborazzi:roborazzi-compose-desktop/1.36.0/1.37.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-desktop/1.36.0/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.github.takahirom.roborazzi:roborazzi-compose](https://redirect.github.com/takahirom/roborazzi) | `1.36.0` -> `1.37.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.takahirom.roborazzi:roborazzi-compose/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.github.takahirom.roborazzi:roborazzi-compose/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.github.takahirom.roborazzi:roborazzi-compose/1.36.0/1.37.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.36.0/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.github.takahirom.roborazzi:roborazzi](https://redirect.github.com/takahirom/roborazzi) | `1.36.0` -> `1.37.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.takahirom.roborazzi:roborazzi/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.github.takahirom.roborazzi:roborazzi/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.github.takahirom.roborazzi:roborazzi/1.36.0/1.37.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.36.0/1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>takahirom/roborazzi (io.github.takahirom.roborazzi)</summary> ### [`v1.37.0`](https://redirect.github.com/takahirom/roborazzi/releases/tag/1.37.0) [Compare Source](https://redirect.github.com/takahirom/roborazzi/compare/1.36.0...1.37.0) ##### Bug Fixes and Workarounds ##### Compose AlertDialog Support Support for capturing Alert Dialogs has been fixed, ensuring correct screenshot display. `captureScreenRoboImage()`, which merges all windows, is now used only when multiple windows are present. Thanks to [@​ashughes](https://redirect.github.com/ashughes) for reporting this and to [@​mhidaka](https://redirect.github.com/mhidaka) and [@​hiroaki404](https://redirect.github.com/hiroaki404) for bringing it to my attention at a Japan Android testing event. <img width="366" alt="image" src="https://github.com/user-attachments/assets/e339de2e-ea28-44e8-9946-a24fa22a5286" /> ##### Workaround for Overlap Handling for SDK 35 Compose Screenshots ##### Problem When updating to SDK 35 and using the default theme, the ActionBar is included in screenshots, leading to overlap when using `createComposeRule()`. This occurs because `createComposeRule()` uses the default theme by default. Thank you for letting me know about this, [@​keyboardsurfer](https://redirect.github.com/keyboardsurfer)! <img width=400 src=https://github.com/user-attachments/assets/ba5f29ae-24bb-48f9-aa27-f335f80b784f /> I have filed an issue for this: https://issuetracker.google.com/issues/383368165 ##### Why this happens SDK 35 enforces edge-to-edge display, which means it **does not provide automatic padding for the ActionBar**. ##### How Roborazzi currently workarounds this Roborazzi now automatically hides the ActionBar when taking screenshots on SDK 35 and higher. This functions similarly to `view.getActivity()?.actionBar?.hide()`. However, this workaround may cause performance issues and should not be relied upon. Roborazzi outputs warning logs with alternative suggestions. Thank you to [@​sergio-sastre](https://redirect.github.com/sergio-sastre) for advising on this workaround! **If you need to include the ActionBar in screenshots,** Roborazzi provides a flag, `roborazzi.compose.actionbar.overlap.fix=false`, that can be added to your `gradle.properties` file. ##### What should we do? A permanent solution will likely require changes from Google. In the meantime, adding `<application android:theme="@​style/Theme.AppCompat.Light.NoActionBar" />` to the module's `src/test/AndroidManifest.xml` file changes the Activity's default theme and resolves the issue. Thank you to [@​mattinger](https://redirect.github.com/mattinger) for finding this! [https://github.com/takahirom/roborazzi/issues/598#issuecomment-2533372700](https://redirect.github.com/takahirom/roborazzi/issues/598#issuecomment-2533372700) ##### Stabilized Output for Dump Screenshots Thanks to [@​siarhei-luskanau](https://redirect.github.com/siarhei-luskanau) for contributing an improvement that reduces unnecessary diffs for the Roborazzi dump feature. ##### New Features ##### Add `inspectionMode()` for Compose Previews Thanks to [@​YusukeMoriJapan](https://redirect.github.com/YusukeMoriJapan)'s contribution, `inspectionMode()` is now available in `RoborazziComposeOptions`. This is particularly useful when working with libraries that have specific preview implementations. This mode is off by default to maintain high fidelity. Here's how to enable it: ```kotlin captureRoboImage( roborazziComposeOptions = RoborazziComposeOptions { inspectionMode(true) } ) { ... } ``` *** ##### What's Changed - Fix document build by [@​takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/597](https://redirect.github.com/takahirom/roborazzi/pull/597) - Sort units and actions of ComposePrintToString to stabilize output in Dump screenshots. by [@​siarhei-luskanau](https://redirect.github.com/siarhei-luskanau) in [https://github.com/takahirom/roborazzi/pull/600](https://redirect.github.com/takahirom/roborazzi/pull/600) - Update API version for sample by [@​takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/601](https://redirect.github.com/takahirom/roborazzi/pull/601) - add localInspectionMode property to RoborazziComposeOptions by [@​YusukeMoriJapan](https://redirect.github.com/YusukeMoriJapan) in [https://github.com/takahirom/roborazzi/pull/588](https://redirect.github.com/takahirom/roborazzi/pull/588) - \[Refactor] Separate compose lambda test by [@​takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/606](https://redirect.github.com/takahirom/roborazzi/pull/606) - Add elevation for PreviewNormal preview test by [@​takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/608](https://redirect.github.com/takahirom/roborazzi/pull/608) - Fix alert dialog support by [@​takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/555](https://redirect.github.com/takahirom/roborazzi/pull/555) - Add default theme test by [@​takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/603](https://redirect.github.com/takahirom/roborazzi/pull/603) - Revert compileSdk and targetSdk for library by [@​takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/609](https://redirect.github.com/takahirom/roborazzi/pull/609) - Add overlap workaround by [@​takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/604](https://redirect.github.com/takahirom/roborazzi/pull/604) ##### New Contributors - [@​siarhei-luskanau](https://redirect.github.com/siarhei-luskanau) made their first contribution in [https://github.com/takahirom/roborazzi/pull/600](https://redirect.github.com/takahirom/roborazzi/pull/600) **Full Changelog**: takahirom/roborazzi@1.36.0...1.37.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/chrisbanes/haze). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS41OC4xIiwidXBkYXRlZEluVmVyIjoiMzkuNTguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information