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 dependency com.github.sergio-sastre.ComposablePreviewScanner:android to v0.4.0 - autoclosed #623

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 9, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.github.sergio-sastre.ComposablePreviewScanner:android 0.3.0 -> 0.4.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

sergio-sastre/ComposablePreviewScanner (com.github.sergio-sastre.ComposablePreviewScanner:android)

v0.4.0

Compare Source

NEW! Parsing Preview Device String

This version provides DevicePreviewInfoParser.parse(device: String)
which returns a Device object containing all the necessary information to support different devices in your Roborazzi & Paparazzi screenshot tests!
It can parse ALL possible combinations of "device strings" up to Android Studio Lady Bug, namely:

// The over 80 devices supported either by id and/or name, for instance:
@​Preview(device = "id:pixel_9_pro")
@​Preview(device = "name:Pixel 9 Pro")
@​Preview(device = "spec:parent=pixel_9_pro, orientation=landscape, navigation=buttons")
// And custom devices
@​Preview(device = "spec:width = 411dp, height = 891dp, orientation = landscape, dpi = 420, isRound = false, chinSize = 0dp, cutout = corner")
@​Preview(device = "spec:id=reference_desktop,shape=Normal,width=1920,height=1080,unit=px,dpi=160") // in pixels
@​Preview(device = "spec:id=reference_desktop,shape=Normal,width=1920,height=1080,unit=dp,dpi=160") // in dp
...

If you are using Roborazzi, you can streamline the process by just calling

RobolectricDeviceQualifierBuilder.build(preview.previewInfo)?.run {
          RuntimeEnvironment.setQualifiers(this)
}

before setting any other Robolectric 'cumulative qualifier' in your tests.
For further info on how to use them, see Roborazzi and Paparazzi sections in the README.md respectively.

Breaking Change

AndroidScreenshotIdBuilder also uses the new DevicePreviewInfoParser.parse(device: String) and therefore the screenshot file names might change when updating

v0.3.2

Compare Source

Fix bugs introduced in 0.3.1

  • scanAllPackages() working again
  • some speed gain when finding Previews (alleged in 0.3.1)

[!NOTE]
This build fixes issues introduced in 0.3.1, while also addressing 0.3.1 claims

v0.3.1

Compare Source

  • Fix #​27
  • Improve speed of Finding Composables by avoiding unnecessary class loading

[!WARNING]
This build broke some functionality that was fixed in the next version 0.3.2


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 this update again.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies upgrade dependencies label Oct 9, 2024
@renovate renovate bot force-pushed the renovate/com.github.sergio-sastre.composablepreviewscanner-android-0.x branch from 74b8664 to 832dfa0 Compare October 30, 2024 22:05
@renovate renovate bot changed the title Update dependency com.github.sergio-sastre.ComposablePreviewScanner:android to v0.3.2 Update dependency com.github.sergio-sastre.ComposablePreviewScanner:android to v0.4.0 Oct 30, 2024
@renovate renovate bot changed the title Update dependency com.github.sergio-sastre.ComposablePreviewScanner:android to v0.4.0 Update dependency com.github.sergio-sastre.ComposablePreviewScanner:android to v0.4.0 - autoclosed Dec 18, 2024
@renovate renovate bot closed this Dec 18, 2024
@renovate renovate bot deleted the renovate/com.github.sergio-sastre.composablepreviewscanner-android-0.x branch December 18, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies upgrade dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants