diff --git a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Support/HostedUI/HostedUIASWebAuthenticationSession.swift b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Support/HostedUI/HostedUIASWebAuthenticationSession.swift index 4e42a50c99..872a876e06 100644 --- a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Support/HostedUI/HostedUIASWebAuthenticationSession.swift +++ b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Support/HostedUI/HostedUIASWebAuthenticationSession.swift @@ -62,7 +62,7 @@ class HostedUIASWebAuthenticationSession: NSObject, HostedUISessionBehavior { DispatchQueue.main.async { var canStart = true - if #available(macOS 10.15.4, iOS 13.4, *) { + if #available(macOS 12.0, iOS 13.4, *) { canStart = aswebAuthenticationSession.canStart } if canStart { diff --git a/AmplifyPlugins/Logging/Sources/AWSCloudWatchLoggingPlugin/Persistence/LogFile.swift b/AmplifyPlugins/Logging/Sources/AWSCloudWatchLoggingPlugin/Persistence/LogFile.swift index 03ee67607a..82aa7b1b9a 100644 --- a/AmplifyPlugins/Logging/Sources/AWSCloudWatchLoggingPlugin/Persistence/LogFile.swift +++ b/AmplifyPlugins/Logging/Sources/AWSCloudWatchLoggingPlugin/Persistence/LogFile.swift @@ -29,7 +29,7 @@ final class LogFile { self.fileURL = fileURL self.sizeLimitInBytes = sizeLimitInBytes self.handle = try FileHandle(forUpdating: fileURL) - if #available(macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4, *) { + if #available(macOS 12.0, iOS 13.4, watchOS 6.2, tvOS 13.4, *) { self.count = try self.handle.offset() } else { self.count = self.handle.offsetInFile @@ -67,7 +67,7 @@ final class LogFile { /// Writes the given **single line of text** represented as a /// Data to the underlying log file. func write(data: Data) throws { - if #available(macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4, *) { + if #available(macOS 12.0, iOS 13.4, watchOS 6.2, tvOS 13.4, *) { try self.handle.write(contentsOf: data) } else { self.handle.write(data) diff --git a/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Support/Internal/FileHandle+UInt64.swift b/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Support/Internal/FileHandle+UInt64.swift index be6eb4bb49..220d02d400 100644 --- a/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Support/Internal/FileHandle+UInt64.swift +++ b/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Support/Internal/FileHandle+UInt64.swift @@ -34,7 +34,7 @@ extension FileHandle { } private func readData(upToCount length: Int) throws -> Data? { - if #available(iOS 13.4, macOS 10.15.4, tvOS 13.4, *) { + if #available(iOS 13.4, macOS 12.0, tvOS 13.4, *) { return try read(upToCount: length) } else { return readData(ofLength: length) diff --git a/Package.swift b/Package.swift index dda063d628..5d3449ac90 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import PackageDescription let platforms: [SupportedPlatform] = [ .iOS(.v13), - .macOS(.v10_15), + .macOS(.v12), .tvOS(.v13), .watchOS(.v9) ] diff --git a/README-combine-support.md b/README-combine-support.md index c0ede123a7..07297da0f2 100644 --- a/README-combine-support.md +++ b/README-combine-support.md @@ -2,7 +2,7 @@ AWS Amplify -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. +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. ```swift let places = try await Amplify.Geo.search(for "coffee") diff --git a/README.md b/README.md index 7e7cb23040..4901a18a4f 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ The Amplify Library for Swift is layered on the [AWS SDK for Swift](https://aws. | Platform | Versions | Support Level | | ---------: | -------: | :-----------: | | iOS | 13+ | GA | -| macOS | 10.15+ | GA | +| macOS | 12+ | GA | | tvOS | 13+ | GA | | watchOS | 9+ | GA | | visionOS | 1+ | Preview* |