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 device definitions #56

Merged
merged 8 commits into from
May 2, 2023
Merged

Conversation

yschimke
Copy link
Contributor

@yschimke yschimke commented May 1, 2023

Change the source, download on the fly and attempt to use Ktor serialization.

@yschimke
Copy link
Contributor Author

yschimke commented May 1, 2023

Follow up from #47 (comment)

@takahirom
Copy link
Owner

👀

@yschimke
Copy link
Contributor Author

yschimke commented May 1, 2023

There is at least one bug with, with logic for round/notround.

@takahirom
Copy link
Owner

I've just updated the settings to make sure GitHub Actions runs on your PR. When you have a moment, could you please rebase from the main branch and push your changes again?

@takahirom
Copy link
Owner

Your PR looks good so far. I'll be taking a closer look at it tomorrow to review it in more detail. Thanks for your contribution!

@takahirom
Copy link
Owner

takahirom commented May 1, 2023

Could you please use a new wear device? 👀

e: /Users/runner/work/roborazzi/roborazzi/app/src/test/java/com/github/takahirom/roborazzi/sample/ComposeSetContentTest.kt: (35, 44): Unresolved reference: WearOSRound

Task :app:compileDebugUnitTestKotlin FAILED

Copy link
Owner

@takahirom takahirom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a few suggestions in the comments, but it looks great!

roborazzi/build.gradle Show resolved Hide resolved
const val Pixel6Pro = "w411dp-h891dp-normal-long-notround-any-560dpi-keyshidden-nonav"
const val Pixel6a = "w411dp-h914dp-normal-long-notround-any-420dpi-keyshidden-nonav"
const val Pixel7Pro = "w411dp-h891dp-normal-long-notround-any-560dpi-keyshidden-nonav"
const val Pixel7 = "w411dp-h914dp-normal-long-notround-any-420dpi-keyshidden-nonav"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! This will allow us to use the new devices!

get() = if (hardware.screen.screenRatio == "long") "long" else "notlong"

val shape: String
get() = if (bootProps?.bootProps?.find { it.propName == "ro.emulator.circular" }?.propValue == "true")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

appendLine(
val deviceTypes = runBlocking { readAllDevices() }.groupBy { it.tagId }

FileSystem.SYSTEM.write("../roborazzi/src/main/java/com/github/takahirom/roborazzi/RobolectricDeviceQualifiers.kt".toPath()) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

yschimke and others added 3 commits May 2, 2023 07:22
Co-authored-by: Takahiro Menju <takam.dev@gmail.com>
) {
val qualifier: String
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@takahirom takahirom merged commit e75ab98 into takahirom:main May 2, 2023
2 checks passed
slack-oss-bot added a commit to slackhq/circuit that referenced this pull request May 31, 2023
This PR contains the following updates:

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

---

### ⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the
Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>takahirom/roborazzi</summary>

###
[`v1.2.0`](https://togithub.com/takahirom/roborazzi/releases/tag/1.2.0)

[Compare
Source](https://togithub.com/takahirom/roborazzi/compare/1.1.0...1.2.0)

Breaking changes from 1.1.0
⚠️ Breaking change: This is a change that affects the verify and compare
tasks because the default image format was changed to support
transparent images.
⚠️ Breaking change: We now use a transparent background for the
Composable lambda captureRoboImage(). To use the old implementation,
refer to
[takahirom/roborazzi#70 (comment).

##### What's Changed

- Support image pixel type and make ARGB\_8888 the default value. by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#48
- Add robolectric device qualifiers by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#49
- Fix Compose gif by [@&#8203;takahirom](https://togithub.com/takahirom)
in
[takahirom/roborazzi#52
- Add pull request trigger for forked PR by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#58
- Update device definitions by
[@&#8203;yschimke](https://togithub.com/yschimke) in
[takahirom/roborazzi#56
- \[CI]Add unchanged test workflow by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#59
- Fix bug captureRoboLastImage does not run when verifying and comparing
by [@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#61
- Add accessibility dump by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#55
- Add an IDE icon. by [@&#8203;yschimke](https://togithub.com/yschimke)
in
[takahirom/roborazzi#64
- Refactor and reduce Gradle Plugin logic by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#69
- Use transparent theme for compose lambda by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#70
- Add sample workflow link to README by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#71
- Introduce new workflows by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#72
- Fix GitHubActions path by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#73
- Add RoborazziRule.Options.outputFileProvider by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#74
- Save the actual image when comparing and verifying by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#51
- Add verifyAndRecordRoborazzi task by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#81
- Fix shellcheck problems by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#82

**Full Changelog**:
takahirom/roborazzi@1.1.0...1.2.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://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMDUuMSIsInVwZGF0ZWRJblZlciI6IjM1LjEwNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
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.

None yet

2 participants