Skip to content

Commit 97ba904

Browse files
authored
feat: update minimum supported macOS version to match Swift SDK (#4025)
* chore: Update minimum supported macOS version to match Swift SDK * update readmes and code
1 parent bdf99fd commit 97ba904

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Support/HostedUI/HostedUIASWebAuthenticationSession.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class HostedUIASWebAuthenticationSession: NSObject, HostedUISessionBehavior {
6262

6363
DispatchQueue.main.async {
6464
var canStart = true
65-
if #available(macOS 10.15.4, iOS 13.4, *) {
65+
if #available(macOS 12.0, iOS 13.4, *) {
6666
canStart = aswebAuthenticationSession.canStart
6767
}
6868
if canStart {

AmplifyPlugins/Logging/Sources/AWSCloudWatchLoggingPlugin/Persistence/LogFile.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class LogFile {
2929
self.fileURL = fileURL
3030
self.sizeLimitInBytes = sizeLimitInBytes
3131
self.handle = try FileHandle(forUpdating: fileURL)
32-
if #available(macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4, *) {
32+
if #available(macOS 12.0, iOS 13.4, watchOS 6.2, tvOS 13.4, *) {
3333
self.count = try self.handle.offset()
3434
} else {
3535
self.count = self.handle.offsetInFile
@@ -67,7 +67,7 @@ final class LogFile {
6767
/// Writes the given **single line of text** represented as a
6868
/// Data to the underlying log file.
6969
func write(data: Data) throws {
70-
if #available(macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4, *) {
70+
if #available(macOS 12.0, iOS 13.4, watchOS 6.2, tvOS 13.4, *) {
7171
try self.handle.write(contentsOf: data)
7272
} else {
7373
self.handle.write(data)

AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Support/Internal/FileHandle+UInt64.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extension FileHandle {
3434
}
3535

3636
private func readData(upToCount length: Int) throws -> Data? {
37-
if #available(iOS 13.4, macOS 10.15.4, tvOS 13.4, *) {
37+
if #available(iOS 13.4, macOS 12.0, tvOS 13.4, *) {
3838
return try read(upToCount: length)
3939
} else {
4040
return readData(ofLength: length)

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44

55
let platforms: [SupportedPlatform] = [
66
.iOS(.v13),
7-
.macOS(.v10_15),
7+
.macOS(.v12),
88
.tvOS(.v13),
99
.watchOS(.v9)
1010
]

README-combine-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<img src="https://s3.amazonaws.com/aws-mobile-hub-images/aws-amplify-logo.png" alt="AWS Amplify" width="550" >
44

5-
Amplify supports iOS 13+ and macOS 10.15+, and ships with APIs that leverage Swift Concurrency (async/await) to return values. For example, the following returns an array of type `Geo.Place` with search results for coffee shops.
5+
Amplify supports iOS 13+ and macOS 12+, and ships with APIs that leverage Swift Concurrency (async/await) to return values. For example, the following returns an array of type `Geo.Place` with search results for coffee shops.
66

77
```swift
88
let places = try await Amplify.Geo.search(for "coffee")

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The Amplify Library for Swift is layered on the [AWS SDK for Swift](https://aws.
3030
| Platform | Versions | Support Level |
3131
| ---------: | -------: | :-----------: |
3232
| iOS | 13+ | GA |
33-
| macOS | 10.15+ | GA |
33+
| macOS | 12+ | GA |
3434
| tvOS | 13+ | GA |
3535
| watchOS | 9+ | GA |
3636
| visionOS | 1+ | Preview* |

0 commit comments

Comments
 (0)