Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all dependencies #272

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Update all dependencies #272

merged 1 commit into from
Jul 19, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 14, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change Age Adoption Passing Confidence
gradle (source) minor 8.8 -> 8.9 age adoption passing confidence
androidx.test.ext:junit dependencies minor 1.1.5 -> 1.2.1 age adoption passing confidence
androidx.test.espresso:espresso-core dependencies minor 3.5.1 -> 3.6.1 age adoption passing confidence
androidx.lifecycle:lifecycle-service (source) dependencies patch 2.8.2 -> 2.8.3 age adoption passing confidence
androidx.lifecycle:lifecycle-runtime-ktx (source) dependencies patch 2.8.2 -> 2.8.3 age adoption passing confidence
androidx.fragment:fragment-ktx (source) dependencies patch 1.8.0 -> 1.8.1 age adoption passing confidence
androidx.lifecycle:lifecycle-runtime-compose (source) dependencies patch 2.8.2 -> 2.8.3 age adoption passing confidence
com.android.tools.build:gradle (source) dependencies minor 8.4.2 -> 8.5.1 age adoption passing confidence
androidx.lifecycle:lifecycle-viewmodel-compose (source) dependencies patch 2.8.2 -> 2.8.3 age adoption passing confidence
com.android.tools.lint:lint-gradle dependencies minor 31.4.2 -> 31.5.1 age adoption passing confidence
io.github.takahirom.roborazzi plugin minor 1.20.0 -> 1.23.0 age adoption passing confidence
io.github.takahirom.roborazzi:roborazzi-junit-rule dependencies minor 1.20.0 -> 1.23.0 age adoption passing confidence
io.github.takahirom.roborazzi:roborazzi-compose dependencies minor 1.20.0 -> 1.23.0 age adoption passing confidence
io.github.takahirom.roborazzi:roborazzi dependencies minor 1.20.0 -> 1.23.0 age adoption passing confidence
org.robolectric:robolectric (source) dependencies minor 4.12.2 -> 4.13 age adoption passing confidence
androidx.compose.ui:ui-tooling-preview (source) dependencies patch 1.7.0-beta03 -> 1.7.0-beta05 age adoption passing confidence
androidx.compose.ui:ui-tooling (source) dependencies patch 1.7.0-beta03 -> 1.7.0-beta05 age adoption passing confidence
androidx.compose.material:material-icons-extended (source) dependencies patch 1.7.0-beta03 -> 1.7.0-beta05 age adoption passing confidence
com.google.android.horologist:horologist-roboscreenshots dependencies patch 0.5.27 -> 0.5.28 age adoption passing confidence
com.google.android.horologist:horologist-health-service dependencies patch 0.5.27 -> 0.5.28 age adoption passing confidence
com.google.android.horologist:horologist-health-composables dependencies patch 0.5.27 -> 0.5.28 age adoption passing confidence
com.google.android.horologist:horologist-compose-material dependencies patch 0.5.27 -> 0.5.28 age adoption passing confidence
com.google.android.horologist:horologist-compose-layout dependencies patch 0.5.27 -> 0.5.28 age adoption passing confidence
androidx.lifecycle:lifecycle-viewmodel-ktx (source) dependencies patch 2.8.2 -> 2.8.3 age adoption passing confidence
androidx.lifecycle:lifecycle-common-java8 (source) dependencies patch 2.8.2 -> 2.8.3 age adoption passing confidence
androidx.compose.ui:ui-test-junit4 (source) dependencies patch 1.7.0-beta03 -> 1.7.0-beta05 age adoption passing confidence
com.android.application (source) plugin minor 8.4.2 -> 8.5.1 age adoption passing confidence

Release Notes

gradle/gradle (gradle)

v8.9

Compare Source

takahirom/roborazzi (io.github.takahirom.roborazzi)

v1.23.0

Compare Source

Breaking Changes to roborazzi.generateComposePreviewRobolectricTests.customTestQualifiedClassName Gradle Extension

We released roborazzi.generateComposePreviewRobolectricTests.customTestQualifiedClassName in the previous release 1.22.0, allowing customization of preview test behavior. We have since discovered that the interface of RobolectricPreviewTest cannot adapt to Compose Multiplatform Preview because RobolectricPreviewTest uses AndroidPreviewInfo from ComposablePreviewScanner, which represents Android Compose Preview. To address this, we have added a generic parameter to handle the annotation and renamed RobolectricPreviewTest to ComposePreviewTester.

The Gradle extension property has been renamed:

roborazzi.generateComposePreviewRobolectricTests.customTestQualifiedClassName -> roborazzi.generateComposePreviewRobolectricTests.testerQualifiedClassName

Old interface:

interface RobolectricPreviewTest {
  fun previews(vararg packages: String): List<ComposablePreview<AndroidPreviewInfo>>

  fun test(
    preview: ComposablePreview<AndroidPreviewInfo>,
  )
}

New interface:

interface ComposePreviewTester<T : Any> {
  fun previews(vararg packages: String): List<ComposablePreview<T>>

  fun test(
    preview: ComposablePreview<T>,
  )
}

What's Changed

Full Changelog: takahirom/roborazzi@1.22.2...1.23.0

v1.22.2

Compare Source

Notice

RobolectricPreviewTest and roborazzi.generateComposePreviewRobolectricTests.customTestQualifiedClassName are used for customizing Experimental Compose Preview Support. However, the name and class signature of RobolectricPreviewTest will be changed in a future release(not in 1.22.2) to support the Compose Multiplatform Preview Annotation.

Bug fixes

We didn't have integration tests for Experimental Compose Preview Support, so we added them. In KMP projects, we used to check only testImplementation (androidUnitTest.dependencies.implementation is used for KMP Android Unit tests), and the verification for generateComposePreviewRobolectricTests{} was failing. Therefore, we have added integration tests and fixed the behavior for KMP projects.

What's Changed

Full Changelog: takahirom/roborazzi@1.22.1...1.22.2

v1.22.1

Compare Source

Bug fixes

We've released Experimental Compose Preview Support in 1.22.0. In this release, we are going to include a bug fix for it.
The strategy of generateComposePreviewRobolectricTests{} is not to modify settings automatically, but to verify that the user settings are correct. This allows our settings to be the single source of truth. However, the assertion had some bugs, so I fixed them.

What's Changed

Full Changelog: takahirom/roborazzi@1.22.0...1.22.1

v1.22.0

Compare Source

Experimental Compose Preview Support 🚀

We're excited to announce the experimental release of Compose Preview Support for Roborazzi, a powerful new feature that streamlines the process of generating screenshot tests for Jetpack Compose Previews.

Key Features

  • Automated Test Generation: Automatically generate screenshot tests for Composable Previews using the ComposablePreviewScanner library
  • Manual Integration Support: For those who prefer more control, we've added helper functions to manually integrate Compose Preview screenshot tests.

How to Use

To enable Compose Preview screenshot test generation, add the following to your build.gradle.kts:

roborazzi {
  generateComposePreviewRobolectricTests {
    enable = true
  }
}

After configuration, run the recordRoborazziDebug task to generate screenshots using the newly created tests.

Customization Options

Customize your setup with options like:

  • Specifying package names to scan
  • Defining a custom test class
  • Configuring Robolectric settings

Manual Integration

For manual integration, add the following dependency:

testImplementation("io.github.takahirom.roborazzi:roborazzi-compose-preview-scanner-support:[version]")

Then use the ComposablePreview<AndroidPreviewInfo>.captureRoboImage() function in your tests. Note that ComposablePreview is a class provided by the ComposablePreviewScanner library, which Roborazzi utilizes for this feature.
This approach allows for more fine-grained control over the screenshot capture process for Compose Previews.

Acknowledgements

Special thanks to @​yschimke for the initial proposal, and to @​sergio-sastre and @​yschimke for their valuable design and code reviews.

For more detailed information on setup and usage, please visit our documentation.

Enhanced Accessibility Text Capture

Thanks to @​lukas-mercari 's contribution, we've improved accessibility text dumping for merged Compose elements. Both content descriptions and text are now captured, providing more comprehensive accessibility information in tests.

image

What's Changed

Full Changelog: takahirom/roborazzi@1.21.0...1.22.0

v1.21.0

Compare Source

Android Studio, IntelliJ IDEA Plugin is coming

The Roborazzi Plugin has been released after the previous release. Please check it out. The Roborazzi plugin enhances your development workflow by automatically displaying screenshots related to Roborazzi's screenshot tests within IntelliJ IDEA. Easily view and verify visual outputs directly in your IDE, streamlining your testing and development process.

screencast.2024-06-07.10-08-00.mp4

https://plugins.jetbrains.com/plugin/24561-roborazzi

Now, test report assets are written in the same directory as the report HTML.

We are using Materialize for the HTML report generated in build/reports/roborazzi. This causes a Content Security Policy (CSP) problem when using iframes. As a result, we can't view the report correctly in some projects. To resolve this, we now save the assets like CSS and JS in the same directory as the report HTML. Thank you, @​eyedol, for tackling this difficult problem. Thank you, @​realdadfish, for reporting this!

Bug fix

In the Windows environment, the image path in the report file is not written correctly. I fixed the path separator to resolve this issue. Thank you for reporting this, @​ben-gooding-hub.

What's Changed

Full Changelog: takahirom/roborazzi@1.20.0...1.21.0

google/horologist (com.google.android.horologist:horologist-roboscreenshots)

v0.5.28: 0.5.28

What's Changed

Full Changelog: google/horologist@v0.5.27...v0.5.28


Configuration

📅 Schedule: Branch creation - "before 4am" (UTC), 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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/all branch 5 times, most recently from 224ac14 to dc3dc10 Compare July 1, 2024 18:14
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from 6073702 to 773b2d7 Compare July 8, 2024 07:40
@renovate renovate bot force-pushed the renovate/all branch 7 times, most recently from ec4da60 to decb8ac Compare July 15, 2024 09:33
@yschimke yschimke merged commit e9d5945 into main Jul 19, 2024
11 checks passed
@renovate renovate bot deleted the renovate/all branch July 19, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant