Skip to content

Commit

Permalink
don't build async on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 committed Jan 18, 2022
1 parent 5dcfdbb commit b1baebb
Show file tree
Hide file tree
Showing 46 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ jobs:
- uses: actions/checkout@v2
- uses: MaxDesiatov/swift-windows-action@v1
with:
swift-version: "5.5.1"
swift-version: "5.5.2"
shell-action: swift test --enable-test-discovery --enable-code-coverage -v
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseApple {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseFacebook {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2022 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseGitHub {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2022 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseGoogle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseLDAP {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2022 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseLinkedIn {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseTwitter {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseAnonymous {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseAuthentication {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public protocol ParseAuthentication: Codable {
func unlinkPublisher(options: API.Options) -> Future<AuthenticatedUser, ParseError>
#endif

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
// MARK: 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 @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency) && !os(Linux) && !os(Android) && !os(Windows)
#if compiler(>=5.6.2) && canImport(_Concurrency) && !os(Linux) && !os(Android) && !os(Windows)
import Foundation

extension ParseLiveQuery {
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Objects/ParseInstallation+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseInstallation {
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Objects/ParseObject+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseObject {
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Objects/ParseUser+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseUser {
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 @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

#if os(iOS)
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 @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseCloud {
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 @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseConfig {
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 @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
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 @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseHealth {
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Types/ParseOperation+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension ParseOperation {
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Types/Pointer+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

// 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 @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation

public extension Query {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseAnanlyticsAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseAnonymousAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseAppleAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
4 changes: 2 additions & 2 deletions Tests/ParseSwiftTests/ParseAuthenticationAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down Expand Up @@ -105,7 +105,7 @@ class ParseAuthenticationAsyncTests: XCTestCase { // swiftlint:disable:this type
}
#endif

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
func login(authData: [String: String],
options: API.Options) async throws -> AuthenticatedUser {
throw ParseError(code: .unknownError, message: "Not implemented")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class ParseAuthenticationCombineTests: XCTestCase {
}
#endif

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
func login(authData: [String: String],
options: API.Options) async throws -> AuthenticatedUser {
throw ParseError(code: .unknownError, message: "Not implemented")
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseAuthenticationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class ParseAuthenticationTests: XCTestCase {
}
#endif

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
func login(authData: [String: String],
options: API.Options) async throws -> AuthenticatedUser {
throw ParseError(code: .unknownError, message: "Not implemented")
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseCloudAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseConfigAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseFacebookAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseFileAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseGitHubTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class ParseGitHubTests: XCTestCase { // swiftlint:disable:this type_body_length
.AuthenticationKeys.id.verifyMandatoryKeys(authData: authDataWrong))
}

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
@MainActor
func testLogin() async throws {

Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseGoogleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class ParseGoogleTests: XCTestCase { // swiftlint:disable:this type_body_length
.AuthenticationKeys.id.verifyMandatoryKeys(authData: authDataWrong))
}

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
@MainActor
func testLogin() async throws {

Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseHealthAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseInstallationAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseLDAPAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseLinkedInTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class ParseLinkedInTests: XCTestCase { // swiftlint:disable:this type_body_lengt
.AuthenticationKeys.id.verifyMandatoryKeys(authData: authDataWrong))
}

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
@MainActor
func testLogin() async throws {

Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseLiveQueryAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency) && !os(Linux) && !os(Android) && !os(Windows)
#if compiler(>=5.6.2) && canImport(_Concurrency) && !os(Linux) && !os(Android) && !os(Windows)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseObjectAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseOperationAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParsePointerAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2021 Parse Community. All rights reserved.
//

#if compiler(>=5.5.2) && canImport(_Concurrency)
#if compiler(>=5.6.2) && canImport(_Concurrency)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
Loading

0 comments on commit b1baebb

Please sign in to comment.