Skip to content
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

Enable Strict Concurrency Checking #104

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
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
18 changes: 15 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@

import PackageDescription

#if swift(<6)
let swiftSettings: [SwiftSetting] = [
.enableExperimentalFeature("SwiftConcurrency")
]
#else
let swiftSettings: [SwiftSetting] = [
.enableUpcomingFeature("SwiftConcurrency")
]
#endif

let package = Package(
name: "Spezi",
Expand All @@ -35,21 +44,24 @@ let package = Package(
dependencies: [
.product(name: "SpeziFoundation", package: "SpeziFoundation"),
.product(name: "XCTRuntimeAssertions", package: "XCTRuntimeAssertions")
]
],
swiftSettings: swiftSettings
),
.target(
name: "XCTSpezi",
dependencies: [
.target(name: "Spezi")
]
],
swiftSettings: swiftSettings
),
.testTarget(
name: "SpeziTests",
dependencies: [
.target(name: "Spezi"),
.target(name: "XCTSpezi"),
.product(name: "XCTRuntimeAssertions", package: "XCTRuntimeAssertions")
]
],
swiftSettings: swiftSettings
)
]
)
Loading