-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
120 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// VersionDetector.swift | ||
// | ||
// | ||
// Created by Nacho Soto on 8/17/23. | ||
// | ||
|
||
import Foundation | ||
|
||
enum VersionDetector { | ||
|
||
static let iOS15: Bool = { | ||
return Self.isAtLeast(version: 15) && !Self.isAtLeast(version: 16) | ||
}() | ||
|
||
private static func isAtLeast(version: Int) -> Bool { | ||
return ProcessInfo.processInfo.isOperatingSystemAtLeast(.init(majorVersion: version, | ||
minorVersion: 0, | ||
patchVersion: 0)) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+733 KB
...ates/__Snapshots__/OtherPaywallViewTests/iOS15-testDefaultDarkModePaywall.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+735 KB
...ts/Templates/__Snapshots__/OtherPaywallViewTests/iOS15-testDefaultPaywall.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.15 KB
...ates/__Snapshots__/OtherPaywallViewTests/iOS15-testLoadingCardPaywallView.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.51 KB
...apshots__/OtherPaywallViewTests/iOS15-testLoadingCondensedCardPaywallView.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+903 KB
...emplates/__Snapshots__/OtherPaywallViewTests/iOS15-testLoadingPaywallView.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+467 KB
...plates/__Snapshots__/PaywallViewDynamicTypeTests/iOS15-testAccessibility1.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+222 KB
...plates/__Snapshots__/PaywallViewDynamicTypeTests/iOS15-testAccessibility3.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+180 KB
...plates/__Snapshots__/PaywallViewDynamicTypeTests/iOS15-testAccessibility5.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+448 KB
...Tests/Templates/__Snapshots__/PaywallViewDynamicTypeTests/iOS15-testLarge.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+443 KB
...ests/Templates/__Snapshots__/PaywallViewDynamicTypeTests/iOS15-testMedium.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+442 KB
...Tests/Templates/__Snapshots__/PaywallViewDynamicTypeTests/iOS15-testSmall.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+448 KB
...ests/Templates/__Snapshots__/PaywallViewDynamicTypeTests/iOS15-testXLarge.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+439 KB
...ests/Templates/__Snapshots__/PaywallViewDynamicTypeTests/iOS15-testXSmall.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+452 KB
...sts/Templates/__Snapshots__/PaywallViewDynamicTypeTests/iOS15-testXXLarge.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+456 KB
...ts/Templates/__Snapshots__/PaywallViewDynamicTypeTests/iOS15-testXXXLarge.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+946 KB
...ts/Templates/__Snapshots__/PaywallViewLocalizationTests/iOS15-testSpanish.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.9 KB
...tUITests/Templates/__Snapshots__/Template1ViewTests/iOS15-testCardPaywall.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.9 KB
...Templates/__Snapshots__/Template1ViewTests/iOS15-testCondensedCardPaywall.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+437 KB
...atUITests/Templates/__Snapshots__/Template1ViewTests/iOS15-testCustomFont.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+441 KB
...eCatUITests/Templates/__Snapshots__/Template1ViewTests/iOS15-testDarkMode.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+439 KB
...ITests/Templates/__Snapshots__/Template1ViewTests/iOS15-testSamplePaywall.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+441 KB
...hots__/Template1ViewTests/iOS15-testSamplePaywallWithIneligibleIntroOffer.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+445 KB
...es/__Snapshots__/Template1ViewTests/iOS15-testSamplePaywallWithIntroOffer.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+437 KB
...pshots__/Template1ViewTests/iOS15-testSamplePaywallWithLoadingEligibility.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.9 KB
...tUITests/Templates/__Snapshots__/Template2ViewTests/iOS15-testCardPaywall.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.6 KB
...Templates/__Snapshots__/Template2ViewTests/iOS15-testCondensedCardPaywall.1.png
Oops, something went wrong.
Binary file added
BIN
+854 KB
...atUITests/Templates/__Snapshots__/Template2ViewTests/iOS15-testCustomFont.1.png
Oops, something went wrong.
Binary file added
BIN
+866 KB
...eCatUITests/Templates/__Snapshots__/Template2ViewTests/iOS15-testDarkMode.1.png
Oops, something went wrong.
Binary file added
BIN
+971 KB
...ests/Templates/__Snapshots__/Template2ViewTests/iOS15-testPurchasingState.1.png
Oops, something went wrong.
Binary file added
BIN
+868 KB
...ITests/Templates/__Snapshots__/Template2ViewTests/iOS15-testSamplePaywall.1.png
Oops, something went wrong.
Binary file added
BIN
+18.8 KB
...tUITests/Templates/__Snapshots__/Template3ViewTests/iOS15-testCardPaywall.1.png
Oops, something went wrong.
Binary file added
BIN
+18.8 KB
...Templates/__Snapshots__/Template3ViewTests/iOS15-testCondensedCardPaywall.1.png
Oops, something went wrong.
Binary file added
BIN
+75.5 KB
...atUITests/Templates/__Snapshots__/Template3ViewTests/iOS15-testCustomFont.1.png
Oops, something went wrong.
Binary file added
BIN
+72.7 KB
...eCatUITests/Templates/__Snapshots__/Template3ViewTests/iOS15-testDarkMode.1.png
Oops, something went wrong.
Binary file added
BIN
+75.1 KB
...ITests/Templates/__Snapshots__/Template3ViewTests/iOS15-testSamplePaywall.1.png
Oops, something went wrong.
Binary file added
BIN
+30.9 KB
...tUITests/Templates/__Snapshots__/Template4ViewTests/iOS15-testCardPaywall.1.png
Oops, something went wrong.
Binary file added
BIN
+16.4 KB
...Templates/__Snapshots__/Template4ViewTests/iOS15-testCondensedCardPaywall.1.png
Oops, something went wrong.
Binary file added
BIN
+627 KB
...atUITests/Templates/__Snapshots__/Template4ViewTests/iOS15-testCustomFont.1.png
Oops, something went wrong.
Binary file added
BIN
+652 KB
...sts/Templates/__Snapshots__/Template4ViewTests/iOS15-testLargeDynamicType.1.png
Oops, something went wrong.
Binary file added
BIN
+508 KB
...ts/Templates/__Snapshots__/Template4ViewTests/iOS15-testLargerDynamicType.1.png
Oops, something went wrong.
Binary file added
BIN
+694 KB
...ITests/Templates/__Snapshots__/Template4ViewTests/iOS15-testSamplePaywall.1.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters