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

feat: Drop older screenshoting APIs #721

Merged
merged 6 commits into from
Jun 9, 2023
Merged

feat: Drop older screenshoting APIs #721

merged 6 commits into from
Jun 9, 2023

Conversation

mykola-mokhnach
Copy link

I have also set the default screenshoting quality to 3, which abbreviates Apple HEIC image encoder.
This is a lossless format, which gives much better quality results being converted to PNG and it also ensures decent compression level, which helps to avoid unexpected memory issues on devices with larger screens

@mykola-mokhnach mykola-mokhnach changed the title refactor: Drop older screenshoting APIs feat: Drop older screenshoting APIs Jun 6, 2023
}
});
if (!isHeicSuppported) {
[FBLogger logFmt:@"The device under test does not support HEIC image encoding. Falling back to PNG"];
Copy link
Author

Choose a reason for hiding this comment

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

@KazuCocoa Could you please check how this validation behaves on real devices?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, of course. Potentially it will be late a bit, but will do

Copy link
Member

Choose a reason for hiding this comment

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

Maybe I can do this tonight in PT

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

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

The behavior seems good to me.
We should update xcuitest driver's default screenshotQuality value and the capability's description after this. I haven't verified OOM related stuff with my devices, so hopefully this will help the memory usage as addressed in the description

@@ -10,6 +10,8 @@
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>

@class UTType;
Copy link
Member

Choose a reason for hiding this comment

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

Just a note:
This type has worked since iOS 14. We no longer support the version, but current WDA can work with iOS 13. So after this version, such a lower version completely does not work as incompatible code while can compile and install to lower iOS version such as iOS 12 and 13.

@mykola-mokhnach mykola-mokhnach merged commit 4a08d7a into master Jun 9, 2023
@mykola-mokhnach mykola-mokhnach deleted the screenshots branch June 9, 2023 06:34
github-actions bot pushed a commit that referenced this pull request Jun 9, 2023
## [5.4.0](v5.3.3...v5.4.0) (2023-06-09)

### Features

* Drop older screenshoting APIs ([#721](#721)) ([4a08d7a](4a08d7a))

### Bug Fixes

* Streamline errors handling for async block calls ([#725](#725)) ([364b779](364b779))
@github-actions
Copy link

github-actions bot commented Jun 9, 2023

🎉 This PR is included in version 5.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants