Commit 2fff5b0
authored
This is a follow up to #717.
In order to be able to reproduce #2338, which seems to be an issue only
on `watchOS`, it's important that we now run tests on `watchOS` as well.
We probably won't be able to fully replicate that issue since we don't
run tests on actual devices, so they'll still run on 64 bits. But this
way we might be able to prevent issues that are only reproducible on
`watchOS` in the future.
## Changes:
- Added CircleCI job
- Added lane
- Simplified `UnitTestsHostApp` definition using `SwiftUI`
- Increased _test only_ `watchOS` deployment target to 7.0 (this was
necessary to be able to have a common `@main` for the host app)
- Increased _test only_ `tvOS` deployment target to `14.0` (same as
above, plus we only run tvOS tests on the latest version anyway. We test
backwards compatibility through iOS already)
- Fixed test compilation on `watchOS`
- Disabled `HTTPClient` tests on `watchOS` (see
AliSoftware/OHHTTPStubs#287)
- `StoreKitConfigTestCase` is only available from `watchOS 7.0` since
that's when `SKTestSession` was introduced
- Added `watchOS` support to `UnitTests` target
- Added `watchOS` support to `ReceiptParserTests` target
- Fixed `isFamilySharable` `watchOS` version checks for version 8.0
- Created new `CI-RevenueCat` Test Plan to only run unit tests and not
StoreKit tests on `watchOS`
1 parent 3e221e8 commit 2fff5b0
33 files changed
Lines changed: 177 additions & 75 deletions
File tree
- .circleci
- RevenueCat.xcodeproj
- Sources/Purchasing/StoreKitAbstractions
- Tests
- APITesters
- ObjCAPITester/ObjCAPITester
- SwiftAPITester/SwiftAPITester
- StoreKitUnitTests
- TestHelpers
- TestPlans
- UnitTestsHostApp
- UnitTests
- Attribution
- Mocks
- Networking
- Purchasing
- Purchases
- StoreKitAbstractions
- StoreKitExtensions
- TestHelpers
- fastlane
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
368 | 386 | | |
369 | 387 | | |
370 | 388 | | |
| |||
733 | 751 | | |
734 | 752 | | |
735 | 753 | | |
| 754 | + | |
| 755 | + | |
736 | 756 | | |
737 | 757 | | |
738 | 758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
727 | 726 | | |
728 | 727 | | |
729 | 728 | | |
730 | | - | |
731 | 729 | | |
732 | 730 | | |
733 | 731 | | |
| |||
918 | 916 | | |
919 | 917 | | |
920 | 918 | | |
| 919 | + | |
921 | 920 | | |
922 | 921 | | |
923 | 922 | | |
| |||
1634 | 1633 | | |
1635 | 1634 | | |
1636 | 1635 | | |
1637 | | - | |
1638 | 1636 | | |
1639 | 1637 | | |
1640 | 1638 | | |
| |||
2049 | 2047 | | |
2050 | 2048 | | |
2051 | 2049 | | |
| 2050 | + | |
2052 | 2051 | | |
2053 | 2052 | | |
2054 | 2053 | | |
| |||
3203 | 3202 | | |
3204 | 3203 | | |
3205 | 3204 | | |
3206 | | - | |
3207 | 3205 | | |
3208 | 3206 | | |
3209 | 3207 | | |
| |||
3439 | 3437 | | |
3440 | 3438 | | |
3441 | 3439 | | |
3442 | | - | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
3443 | 3443 | | |
3444 | 3444 | | |
3445 | 3445 | | |
| |||
3467 | 3467 | | |
3468 | 3468 | | |
3469 | 3469 | | |
3470 | | - | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
3471 | 3473 | | |
3472 | 3474 | | |
3473 | 3475 | | |
| |||
3602 | 3604 | | |
3603 | 3605 | | |
3604 | 3606 | | |
| 3607 | + | |
| 3608 | + | |
3605 | 3609 | | |
3606 | 3610 | | |
3607 | 3611 | | |
| |||
3624 | 3628 | | |
3625 | 3629 | | |
3626 | 3630 | | |
| 3631 | + | |
| 3632 | + | |
3627 | 3633 | | |
3628 | 3634 | | |
3629 | 3635 | | |
| |||
3784 | 3790 | | |
3785 | 3791 | | |
3786 | 3792 | | |
3787 | | - | |
| 3793 | + | |
3788 | 3794 | | |
3789 | 3795 | | |
3790 | 3796 | | |
| |||
3811 | 3817 | | |
3812 | 3818 | | |
3813 | 3819 | | |
3814 | | - | |
| 3820 | + | |
3815 | 3821 | | |
3816 | 3822 | | |
3817 | 3823 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments