Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PackageDescription

let platforms: [SupportedPlatform] = [
.iOS(.v13),
.macOS(.v10_15),
.macOS(.v12),
.tvOS(.v13),
.watchOS(.v9)
]
Expand Down
2 changes: 1 addition & 1 deletion README-combine-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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* |
Expand Down
Loading