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

Removes requirement to render entire device Screen #497

Merged
merged 4 commits into from Dec 13, 2022

Conversation

rharter
Copy link

@rharter rharter commented Jul 13, 2022

This adds support for RenderMode.SHRINK, allowing you to make view-only screenshots without saving an entire device frame.

@rharter rharter changed the title Rh/shrink Removes requirement to render entire device Screen Jul 15, 2022
Copy link
Contributor

@liutikas liutikas left a comment

Choose a reason for hiding this comment

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

LGTM

paparazzi/src/main/java/app/cash/paparazzi/Paparazzi.kt Outdated Show resolved Hide resolved
paparazzi/src/main/java/app/cash/paparazzi/Paparazzi.kt Outdated Show resolved Hide resolved
@rharter
Copy link
Author

rharter commented Aug 3, 2022

Since there were significant structural changes I've updated this PR based on the latest master branch.

Thanks for your feedback, @liutikas, I've resolved your comments since the files have moved, but I did add the requested comments.

Copy link
Contributor

@liutikas liutikas left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@rharter
Copy link
Author

rharter commented Aug 10, 2022

@jrodbx Anything preventing this from going in?

@jrodbx
Copy link
Collaborator

jrodbx commented Aug 10, 2022

It's on the queue for review, there's some other stuff I'd like to get in first + internal feature work to deliver. Hope to have a look soon.

@liutikas
Copy link
Contributor

For what's worth androidx would love this feature to make 1.1 as well

copybara-service bot pushed a commit to androidx/androidx that referenced this pull request Oct 12, 2022
Apply cashapp/paparazzi#497 with some
formatting tweaks to keep kt-lint happy.

Test: N/A
Bug: 253068501
Change-Id: Ieb1e3fa76fb4e1057e53a98fc6cbc81a848fba9f
@jrodbx
Copy link
Collaborator

jrodbx commented Dec 13, 2022

I'll follow up with a PR to migrate the test as a plugin test, but this is great. thanks!

@jrodbx jrodbx merged commit 6a721a7 into cashapp:master Dec 13, 2022
jrodbx added a commit that referenced this pull request Dec 13, 2022
jrodbx added a commit that referenced this pull request Dec 13, 2022
jrodbx added a commit that referenced this pull request Dec 13, 2022
jrodbx added a commit that referenced this pull request Dec 14, 2022
jrodbx added a commit that referenced this pull request Dec 14, 2022
jrodbx added a commit that referenced this pull request Dec 14, 2022
@JavierStuart
Copy link

Should this work with Compose?

@rharter
Copy link
Author

rharter commented Jan 31, 2023

We use it with Compose views without issues. If you're having a specific failure perhaps open an issue?

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

4 participants