Skip to content

fix: async/await methods should be available for watchOS 8+ #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 25, 2021
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
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ coverage:
status:
patch:
default:
target: 0
target: auto
changes: false
project:
default:
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

### main

[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/2.0.2...main)
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/2.0.3...main)
* _Contributing to this repo? Add info about your change here to be included in the next release_

### 2.0.3
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/2.0.2...2.0.3)

__Fixes__
- Async/await methods should be available for watchOS 8+ ([#265](https://github.com/parse-community/Parse-Swift/pull/265)), thanks to [Corey Baker](https://github.com/cbaker6).

### 2.0.2
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/2.0.1...2.0.2)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseApple {
// MARK: Login - Async/Await

Expand Down Expand Up @@ -49,7 +49,7 @@ public extension ParseApple {
}
}

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseApple {
// MARK: Link - Async/Await

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseFacebook {
// MARK: Login - Async/Await

Expand Down Expand Up @@ -73,7 +73,7 @@ public extension ParseFacebook {
}
}

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseFacebook {
// MARK: Link - Async/Await
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseLDAP {
// MARK: Login - Async/Await
/**
Expand Down Expand Up @@ -48,7 +48,7 @@ public extension ParseLDAP {
}
}

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseLDAP {
// MARK: Link - Async/Await
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseTwitter {
// MARK: Login - Async/Await

Expand Down Expand Up @@ -61,7 +61,7 @@ public extension ParseTwitter {
}
}

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseTwitter {
// MARK: Link - Async/Await

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseAnonymous {

// MARK: Login - Async/Await
Expand Down Expand Up @@ -45,7 +45,7 @@ public extension ParseAnonymous {
}
}

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseAnonymous {

// MARK: Link - Async/Await
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseAuthentication {

// MARK: Convenience Implementations - Async/Await
Expand All @@ -30,7 +30,7 @@ public extension ParseAuthentication {
}
}

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseUser {

// MARK: 3rd Party Authentication - Login Async/Await
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/LiveQuery/ParseLiveQuery+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency) && !os(Linux) && !os(Android)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
extension ParseLiveQuery {
// MARK: Async/Await

Expand Down
4 changes: 2 additions & 2 deletions Sources/ParseSwift/Objects/ParseInstallation+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseInstallation {

// MARK: Fetchable - Async/Await
Expand Down Expand Up @@ -70,7 +70,7 @@ public extension ParseInstallation {
}

// MARK: Batch Support - Async/Await
@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension Sequence where Element: ParseInstallation {
/**
Fetches a collection of installations *aynchronously* with the current data from the server and sets
Expand Down
4 changes: 2 additions & 2 deletions Sources/ParseSwift/Objects/ParseObject+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseObject {

// MARK: Async/Await
Expand Down Expand Up @@ -66,7 +66,7 @@ public extension ParseObject {
}
}

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension Sequence where Element: ParseObject {
// MARK: Batch Support - Async/Await
/**
Expand Down
4 changes: 2 additions & 2 deletions Sources/ParseSwift/Objects/ParseUser+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseUser {

// MARK: Signing Up - Async/Await
Expand Down Expand Up @@ -209,7 +209,7 @@ public extension ParseUser {
}

// MARK: Batch Support - Async/Await
@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension Sequence where Element: ParseUser {
/**
Fetches a collection of users *aynchronously* with the current data from the server and sets
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Operations/ParseOperation+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseOperation {

// MARK: Savable - Async/Await
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/ParseConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation

enum ParseConstants {
static let sdk = "swift"
static let version = "2.0.2"
static let version = "2.0.3"
static let fileManagementDirectory = "parse/"
static let fileManagementPrivateDocumentsDirectory = "Private Documents/"
static let fileManagementLibraryDirectory = "Library/"
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Types/ParseAnalytics+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Foundation
import UIKit
#endif

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseAnalytics {

// MARK: Aysnc/Await
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Types/ParseCloud+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseCloud {

// MARK: Functions - Aysnc/Await
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Types/ParseConfig+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseConfig {

// MARK: Fetchable - Async/Await
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Types/ParseFile+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Foundation
import FoundationNetworking
#endif

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseFile {

// MARK: Async/Await
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Types/ParseHealth+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension ParseHealth {

// MARK: Async/Await
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Types/Query+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if swift(>=5.5) && canImport(_Concurrency)
import Foundation

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public extension Query {

// MARK: Queryable - Async/Await
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseAnanlyticsAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseAnanlyticsAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length
override func setUpWithError() throws {
try super.setUpWithError()
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseAnonymousAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseAnonymousAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length
struct User: ParseUser {

Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseAppleAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseAppleAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length
struct User: ParseUser {

Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseAuthenticationAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import XCTest
@testable import ParseSwift
import Combine

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseAuthenticationAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length
struct User: ParseUser {

Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseCloudAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseCloudAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length
struct Cloud: ParseCloud {
typealias ReturnType = String? // swiftlint:disable:this nesting
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseConfigAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseConfigAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length
struct Config: ParseConfig {
var welcomeMessage: String?
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseFacebookAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseFacebookAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length
struct User: ParseUser {

Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseFileAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseFileAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length
let temporaryDirectory = "\(NSTemporaryDirectory())test/"

Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseHealthAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseHealthAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length
override func setUpWithError() throws {
try super.setUpWithError()
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseInstallationAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseInstallationAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length

struct User: ParseUser {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseLDAPAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseLDAPAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length
struct User: ParseUser {

Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseLiveQueryAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseLiveQueryAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length
override func setUpWithError() throws {
try super.setUpWithError()
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseObjectAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseObjectAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length

struct GameScore: ParseObject {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseOperationAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import XCTest
@testable import ParseSwift

@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, watchOS 9.0, tvOS 15.0, *)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
class ParseOperationAsyncTests: XCTestCase { // swiftlint:disable:this type_body_length
struct GameScore: ParseObject {
//: Those are required for Object
Expand Down
Loading