-
Notifications
You must be signed in to change notification settings - Fork 24
/
Package.swift
62 lines (60 loc) · 2.04 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
// swift-tools-version:5.6
import PackageDescription
// Enable to use bundled Circular Pro fonts (for licensed usage)
let useBundledFonts = false
let package = Package(
name: "Orbit",
platforms: [.iOS(.v13)],
products: [
.library(name: "Orbit", targets: ["Orbit"]),
.library(name: "OrbitIllustrations", targets: ["OrbitIllustrations"]),
.library(name: "OrbitStorybook", targets: ["OrbitStorybook"]),
.plugin(name: "CheckDocumentation", targets: ["CheckDocumentation"]),
],
dependencies: [
.package(
url: "https://github.com/pointfreeco/swift-snapshot-testing.git",
from: "1.17.6"
),
],
targets: [
.target(
name: "Orbit",
resources:
useBundledFonts
? [
.copy("Foundation/Icons/Icons.ttf"),
.copy("Foundation/Typography/Circular20-Black.otf"),
.copy("Foundation/Typography/Circular20-Bold.otf"),
.copy("Foundation/Typography/Circular20-Book.otf"),
.copy("Foundation/Typography/Circular20-Medium.otf"),
]
: [.copy("Foundation/Icons/Icons.ttf")]
),
.target(
name: "OrbitIllustrations",
dependencies: ["Orbit"]
),
.target(
name: "OrbitStorybook",
dependencies: ["Orbit", "OrbitIllustrations"]
),
.testTarget(
name: "SnapshotTests",
dependencies: [
"Orbit",
"OrbitIllustrations",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing")
]
),
.plugin(
name: "CheckDocumentation",
capability: .command(
intent: .custom(
verb: "check-documentation",
description: "Check if all public types are mentioned in the DocC archive."
)
)
)
]
)