-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
44 lines (43 loc) · 1.53 KB
/
Package.swift
File metadata and controls
44 lines (43 loc) · 1.53 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "LoopEval",
platforms: [.macOS(.v13)],
products: [
.executable(name: "loop-eval", targets: ["LoopEvalCLI"]),
.library(name: "EvalCore", targets: ["EvalCore"]),
],
dependencies: [
.package(path: "../LoopAlgorithm"),
// TODO: Re-evaluate NightscoutKit (LoopKit/NightscoutKit) — currently swift-tools-version:5.7
// and targets iOS/watchOS; may produce Swift 6 strict-concurrency warnings.
// Add back in Phase 2 when building the Nightscout data source.
// .package(url: "https://github.com/LoopKit/NightscoutKit", branch: "main"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0"),
],
targets: [
.target(
name: "EvalCore",
dependencies: [
.product(name: "LoopAlgorithm", package: "LoopAlgorithm"),
// TODO: add NightscoutKit dependency here in Phase 2
]
),
.executableTarget(
name: "LoopEvalCLI",
dependencies: [
"EvalCore",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
.testTarget(
name: "EvalCoreTests",
dependencies: [
"EvalCore",
.product(name: "LoopAlgorithm", package: "LoopAlgorithm"),
],
resources: [.copy("Fixtures")]
),
],
swiftLanguageModes: [.v6]
)