-
Notifications
You must be signed in to change notification settings - Fork 372
Generate Mac Catalyst screenshots of Paywall components to be sent to EmergeTools #5303
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
Conversation
Just testing how Emerge will handle Mac variants.
📸 Snapshot TestBase build not foundNo build was found for the base commit f3405d8. This is required to generate a snapshot diff for your pull request. It's possible that you created a branch off the base commit before all of the CI steps have finished processing, e.g. the one that uploads a build to our system. If that's the case, no problem! Just wait and this will eventually resolve. 🛸 Powered by Emerge Tools |
…lly running in the correct environment.
…e call te emerge.
…alls/test-preview
…losely to previous version that was working as possible.
…p bundle to run iPad/iPhone app on Mac.
…eing included in EmergeTools prevew.s
Hoping that this will help Emerge pick up the test filtering on the server.
Without this, we are getting unexpected internal StoreKit previews in our builds.
f064fbe
to
3a3ac5e
Compare
@clindsay3 FYI, I just rebased this from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! 🙌
I just rebased from main
and pushed so that the Emerge snapshots have the latest to run and pass 😊
if #available(iOS 14.0, *), isiOSAppOnMac { | ||
switch UIDevice.current.userInterfaceIdiom { | ||
case .phone: | ||
return "iPhone App on Mac" | ||
case .pad: | ||
return "iPad App on Mac" | ||
default: | ||
return "Unexpected iOS App on Mac" | ||
} | ||
} else { | ||
switch UIDevice.current.userInterfaceIdiom { | ||
case .mac: | ||
return "Mac Catalyst Optimized for Mac" | ||
case .pad: | ||
return "Mac Catalyst Scaled to iPad" | ||
default: | ||
return "Unexpected Platform on Mac Catalyst" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a crazy switch but it makes sense 😀
Tests/TestingApps/PaywallsTester/PaywallsTesterTests/PaywallsTesterTests.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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! I just have some small questions, mostly about the wording of comments for future us 😄
Great job!
Sources/LocalReceiptParsing/Helpers/ProcessInfo+Extensions.swift
Outdated
Show resolved
Hide resolved
Tests/TestingApps/PaywallsTester/PaywallsTester.xcodeproj/project.pbxproj
Show resolved
Hide resolved
Tests/TestingApps/PaywallsTester/PaywallsTesterTests/PaywallsTesterTests.swift
Outdated
Show resolved
Hide resolved
Co-authored-by: Antonio Pallares <[email protected]>
…chases-ios into mac-paywalls/test-preview # Conflicts: # Sources/LocalReceiptParsing/Helpers/ProcessInfo+Extensions.swift # fastlane/Fastfile
Motivation
In order to support Mac Catalyst for Paywall V2, we need to have a mechanism to verify the correctness of all components. This will also provide a quantifiable roadmap towards implementation of support for Mac Catalyst, since we can check off which components are working properly.
Description