-
Notifications
You must be signed in to change notification settings - Fork 444
/
Package.swift
97 lines (84 loc) · 2.77 KB
/
Package.swift
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "CareKit",
defaultLocalization: "en",
platforms: [.iOS(.v14), .macOS(.v13), .watchOS(.v7)],
products: [
.library(
name: "CareKit",
targets: ["CareKit"]),
.library(
name: "CareKitUI",
targets: ["CareKitUI"]),
.library(
name: "CareKitStore",
targets: ["CareKitStore"]),
.library(
name: "CareKitFHIR",
targets: ["CareKitFHIR"]),
],
dependencies: [
.package(
url: "https://github.com/apple/FHIRModels.git",
exact: Version(0, 4, 0)
),
.package(
url: "https://github.com/apple/swift-async-algorithms",
exact: Version(0, 1, 0)
)
],
targets: [
.target(
name: "CareKit",
dependencies: ["CareKitUI", "CareKitStore"],
path: "CareKit/CareKit",
exclude: ["Info.plist"]),
.target(
name: "CareKitUI",
path: "CareKitUI/CareKitUI",
exclude: ["Info.plist"]),
.target(
name: "CareKitStore",
dependencies: [
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
],
path: "CareKitStore/CareKitStore",
exclude: ["Info.plist"],
resources: [
.process("CoreData/Migrations/2_0To2_1/2.0_2.1_Mapping.xcmappingmodel")
]),
.target(
name: "CareKitFHIR",
dependencies: [
"CareKitStore",
.product(name: "ModelsR4", package: "FHIRModels"),
.product(name: "ModelsDSTU2", package: "FHIRModels")
],
path: "CareKitFHIR/CareKitFHIR",
exclude: ["Info.plist"]),
.testTarget(
name: "CareKitStoreTests",
dependencies: ["CareKitStore"],
path: "CareKitStore/CareKitStoreTests",
exclude: ["Info.plist", "CareKitStore.xctestplan"],
resources: [
.process("CoreDataSchema/Migrations")
]),
.testTarget(
name: "CareKitUITests",
dependencies: ["CareKitUI"],
path: "CareKitUI/CareKitUITests",
exclude: ["Info.plist", "CareKitUI.xctestplan"]),
.testTarget(
name: "CareKitFHIRTests",
dependencies: ["CareKitFHIR"],
path: "CareKitFHIR/CareKitFHIRTests",
exclude: ["Info.plist", "CareKitFHIR.xctestplan"]),
.testTarget(
name: "CareKitTests",
dependencies: ["CareKit"],
path: "CareKit/CareKitTests",
exclude: ["Info.plist"]),
]
)