forked from carekit-apple/CareKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
80 lines (69 loc) · 2.25 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "CareKit",
defaultLocalization: "en",
platforms: [.iOS(.v13), .watchOS(.v6)],
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", from: "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",
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: "CareKitFHIRTests",
dependencies: ["CareKitFHIR"],
path: "CareKitFHIR/CareKitFHIRTests",
exclude: ["Info.plist", "CareKitFHIR.xctestplan"]),
.testTarget(
name: "CareKitTests",
dependencies: ["CareKit"],
path: "CareKit/CareKitTests",
exclude: ["Info.plist"])
]
)