-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
53 lines (51 loc) · 1.99 KB
/
Copy pathPackage.swift
File metadata and controls
53 lines (51 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// swift-tools-version: 6.1
import PackageDescription
let package = Package(
name: "ReliaBLE",
// Every platform is pinned to the lowest OS version that ships the `Synchronization` module, because
// `Peripheral` and `PeripheralHandleRegistry` guard their mutable state with `Synchronization.Mutex`.
// Declaring each platform explicitly is what makes that safe: an undeclared platform would otherwise
// inherit SPM's default floor and fail on `import Synchronization`.
platforms: [
.iOS(.v18),
.macOS(.v15),
.tvOS(.v18),
.watchOS(.v11),
.visionOS(.v2)
],
products: [
.library(
name: "ReliaBLE",
targets: ["ReliaBLE"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/itsniper/Willow", branch: "main"),
.package(url: "https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git", .upToNextMinor(from: "1.0.6")),
],
targets: [
.target(
name: "ReliaBLE",
dependencies: ["Willow"],
swiftSettings: [.swiftLanguageMode(.v6), .enableExperimentalFeature("StrictConcurrency")]
),
.target(
name: "ReliaBLEMock",
dependencies: [
"Willow",
.product(name: "CoreBluetoothMock", package: "IOS-CoreBluetooth-Mock")
],
exclude: ["ReliaBLE/CBCentralManagerFactory.swift", "ReliaBLE/Documentation.docc"],
swiftSettings: [.swiftLanguageMode(.v6), .enableExperimentalFeature("StrictConcurrency")]
),
.testTarget(
name: "ReliaBLETests",
dependencies: [
"ReliaBLEMock",
"Willow",
.product(name: "CoreBluetoothMock", package: "IOS-CoreBluetooth-Mock")
],
swiftSettings: [.swiftLanguageMode(.v6), .enableExperimentalFeature("StrictConcurrency")]
),
]
)