-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
103 lines (100 loc) · 2.81 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
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
// swiftlint:disable all
let package = Package(
name: "SparkCommon",
platforms: [
.iOS(.v15)
],
products: [
.library(
name: "SparkCommon",
targets: ["SparkCommon"]
),
.library(
name: "SparkCommonTesting",
targets: ["SparkCommonTesting"]
),
.library(
name: "SparkCommonSnapshotTesting",
targets: ["SparkCommonSnapshotTesting"]
)
],
dependencies: [
// Adevinta
.package(
url: "https://github.com/adevinta/spark-ios-theming.git",
// path: "../spark-ios-theming"
/*version*/ "0.0.1"..."999.999.999"
),
// External
.package(
url: "https://github.com/pointfreeco/swift-snapshot-testing",
from: "1.11.0"
)
],
targets: [
.target(
name: "SparkCommon",
dependencies: [
.product(
name: "SparkTheming",
package: "spark-ios-theming"
)
],
path: "Sources/Core"
),
.target(
name: "SparkCommonTesting",
dependencies: [
"SparkCommon",
.product(
name: "SparkThemingTesting",
package: "spark-ios-theming"
),
.product(
name: "SparkTheme",
package: "spark-ios-theming"
)
],
path: "Sources/Testing"
),
.target(
name: "SparkCommonSnapshotTesting",
dependencies: [
"SparkCommon",
.product(
name: "SparkThemingTesting",
package: "spark-ios-theming"
),
.product(
name: "SparkTheme",
package: "spark-ios-theming"
),
.product(
name: "SnapshotTesting",
package: "swift-snapshot-testing"
),
],
path: "Sources/SnapshotTesting"
),
.testTarget(
name: "SparkCommonUnitTests",
dependencies: [
"SparkCommon",
"SparkCommonTesting"
],
path: "Tests/UnitTests"
),
.testTarget(
name: "SparkCommonSnapshotTests",
dependencies: [
"SparkCommon",
"SparkCommonSnapshotTesting",
"SparkCommonTesting"
],
path: "Tests/SnapshotTests"
)
]
)