Skip to content

Commit

Permalink
Enable Strict Concurrency Checking
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljohanneskraft committed May 3, 2024
1 parent c43e4fa commit 8ac581c
Showing 1 changed file with 15 additions and 3 deletions.
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
)
]
)

0 comments on commit 8ac581c

Please sign in to comment.