-
Notifications
You must be signed in to change notification settings - Fork 5
/
Package.swift
173 lines (167 loc) · 5.93 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "Mistica",
platforms: [
.iOS(.v14)
],
products: [
.library(
name: "Mistica",
targets: ["Mistica", "MisticaCommon", "MisticaSwiftUI"]
)
],
dependencies: [
.package(url: "https://github.com/airbnb/lottie-spm.git", exact: "4.5.0"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing.git", exact: "1.8.2"),
.package(url: "https://github.com/SDWebImage/SDWebImage.git", exact: "5.19.1"),
.package(url: "https://github.com/SDWebImage/SDWebImageSVGCoder.git", exact: "1.7.0")
],
targets: [
.target(
name: "MisticaCommon",
dependencies: [
.product(name: "Lottie", package: "lottie-spm")
],
exclude: [
"Fonts/README.md",
"Controls/README.md"
],
swiftSettings: [
.define("SWIFT_PACKAGE")
]
),
.testTarget(
name: "MisticaCommonTests",
dependencies: [
"MisticaCommon",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing")
],
exclude: [
"Fonts/__Snapshots__"
],
resources: [
.process("Resources/Telefonica-Bold.otf"),
.process("Resources/Telefonica-Light.otf"),
.process("Resources/Telefonica-Regular.otf")
],
swiftSettings: [
.define("SWIFT_PACKAGE")
]
),
.target(
name: "MisticaSwiftUI",
dependencies: [
"MisticaCommon",
.product(name: "Lottie", package: "lottie-spm")
],
exclude: [
"Components/Button/README.md",
"Components/Badge/README.md",
"Components/Tag/README.md",
"Components/List/README.md",
"Components/List/docs",
"Components/Feedback/README.md",
"Components/Feedback/docs",
"Components/Cards/README.md",
"Components/Cards/docs",
"Components/Checkbox/README.md",
"Components/RadioButton/README.md",
"Components/Tabs/README.md",
"Components/Callout/README.md",
"Components/Callout/docs",
"Components/Callout/docs",
"Components/Carousel/README.md",
"Components/EmptyState/README.md",
"Components/Chip/README.md"
],
swiftSettings: [
.define("SWIFT_PACKAGE")
]
),
.testTarget(
name: "MisticaSwiftUITests",
dependencies: [
"MisticaSwiftUI",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing")
],
exclude: [
"UI/__Snapshots__"
],
swiftSettings: [
.define("SWIFT_PACKAGE")
]
),
.target(
name: "Mistica",
dependencies: [
.product(name: "Lottie", package: "lottie-spm"),
.product(name: "SDWebImage", package: "SDWebImage"),
.product(name: "SDWebImageSVGCoder", package: "SDWebImageSVGCoder"),
"MisticaCommon"
],
exclude: [
"Components/Badge/docs",
"Components/Badge/README.md",
"Components/Button/docs",
"Components/Button/README.md",
"Components/Checkbox/README.md",
"Components/Crouton/docs",
"Components/Crouton/README.md",
"Components/Feedback/docs",
"Components/Feedback/README.md",
"Components/Form/docs",
"Components/Form/README.md",
"Components/Header/docs",
"Components/Header/README.md",
"Components/HighlightedCard/README.md",
"Components/InputField/docs",
"Components/InputField/README.md",
"Components/Lists/docs",
"Components/Lists/README.md",
"Components/NavigationBar/README.md",
"Components/Popover/docs",
"Components/Popover/README.md",
"Components/RadioButton/README.md",
"Components/ScrollContentIndicator/docs",
"Components/ScrollContentIndicator/README.md",
"Components/Filter/docs",
"Components/Filter/README.md",
"Components/Switch/README.md",
"Components/Tag/docs",
"Components/Tag/README.md",
"Components/ViewStates/docs",
"Components/ViewStates/README.md",
"Components/Stepper/README.md",
"Components/Stepper/docs",
"Components/Cards/README.md",
"Components/Cards/docs",
"Components/Tabs/README.md",
"Components/Callout/README.md",
"Components/Callout/docs",
"Components/EmptyState/README.md",
"Components/EmptyState/docs",
"Components/Sheet/docs"
],
swiftSettings: [
.define("SWIFT_PACKAGE")
]
),
.testTarget(
name: "MisticaTests",
dependencies: [
"Mistica",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing")
],
exclude: [
"UI/__Snapshots__"
],
resources: [
.process("UI/Fixtures/Icons")
],
swiftSettings: [
.define("SWIFT_PACKAGE")
]
)
]
)