Files
purchases-ios/Sources/Support/SwiftVersionCheck.swift
T
NachoSoto d71772c0e9 Updated requirements to drop Xcode 13.x support (#2419)
Starting April 2023 it's no longer possible to submit apps with Xcode
13.x. This technically doesn't drop _support_, but we might won't be
testing on the oldest supported version of Xcode 13, since it's not
necessary.

### Changes:
_See
[`UpdatingRequirements.md`](https://github.com/RevenueCat/purchases-ios/blob/f8e07f07e8e842c25755f3dbca3a3f35961258a0/Contributing/UpdatingRequirements.md)_

- Removed `CircleCI` Xcode 13.2.1 job (_this saves ~11 minutes of build
time on every commit_)
- Updated `README`
- Updated message in `SwiftVersionCheck.swift`

Note that a lot of CI tests still run on Xcode 13.x for now because
installing old simulators on Xcode 14.x was failing. We'll need to fix
this when `CircleCI` drops support for `Xcode 13.x`.
Once we do that, we can refactor a lot of code like
```swift
#if swift(>=5.7)
extension CustomerInfo: Sendable {}
#else
// `@unchecked` because:
// - `Date` is not `Sendable` until Swift 5.7
// - `URL` is not `Sendable` until Swift 5.7
extension CustomerInfo: @unchecked Sendable {}
#endif
```
2023-04-20 08:31:11 -07:00

20 lines
489 B
Swift

//
// Copyright RevenueCat Inc. All Rights Reserved.
//
// Licensed under the MIT License (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://opensource.org/licenses/MIT
//
// SwiftVersionCheck.swift
//
// Created by Nacho Soto on 1/18/23.
import Foundation
#if swift(<5.5.2)
// See https://xcodereleases.com
#error("RevenueCat requires Xcode 14.0 with Swift 5.5.2 to compile.")
#endif