Generate Mac Catalyst screenshots of Paywall components to be sent to EmergeTools#5303
Generate Mac Catalyst screenshots of Paywall components to be sent to EmergeTools#5303joshdholtz merged 95 commits intomainfrom
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 |
joshdholtz
left a comment
There was a problem hiding this comment.
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.
This is a crazy switch but it makes sense 😀
Tests/TestingApps/PaywallsTester/PaywallsTesterTests/PaywallsTesterTests.swift
Show resolved
Hide resolved
ajpallares
left a comment
There was a problem hiding this comment.
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
Show resolved
Hide resolved
Co-authored-by: Antonio Pallares <ajpallares@users.noreply.github.com>
…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