-
Notifications
You must be signed in to change notification settings - Fork 25
/
Package.swift
99 lines (92 loc) · 2.52 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
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let snapshotFolders = [
"PathBuilder/__Snapshots__",
"NavigationTree/__Snapshots__",
"Screen/__Snapshots__",
]
let tcaSnapshotFolders = [
"__Snapshots__"
]
let testGybFiles = [
"NavigationTree/NavigationTreeBuilder+AnyOf.swift.gyb"
]
let package = Package(
name: "swift-composable-navigator",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v6),
],
products: [
.library(
name: "ComposableNavigator",
targets: ["ComposableNavigator"]
),
.library(
name: "ComposableDeeplinking",
targets: ["ComposableDeeplinking"]
),
.library(
name: "ComposableNavigatorTCA",
targets: ["ComposableNavigatorTCA"]
),
],
dependencies: [
.package(
name: "swift-composable-architecture",
url: "https://github.com/pointfreeco/swift-composable-architecture",
from: "0.7.0"
),
.package(url: "https://github.com/shibapm/Rocket", from: "1.1.0"), // dev
.package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.8.2"), // dev
],
targets: [
.target(
name: "ComposableNavigator",
dependencies: [],
exclude: [
"NavigationTree/NavigationTreeBuilder+AnyOf.swift.gyb",
"PathBuilder/PathBuilders/PathBuilder+AnyOf.swift.gyb",
]
),
.target(
name: "ComposableNavigatorTCA",
dependencies: [
.target(name: "ComposableNavigator"),
.product(
name: "ComposableArchitecture",
package: "swift-composable-architecture"
),
]
),
.target(
name: "ComposableDeeplinking",
dependencies: [
.target(name: "ComposableNavigator"),
]
),
.testTarget(name: "ComposableNavigatorTests", dependencies: ["ComposableNavigator", "SnapshotTesting"], exclude: testGybFiles + snapshotFolders), // dev
.testTarget(name: "ComposableDeeplinkingTests", dependencies: ["ComposableDeeplinking"]), // dev
.testTarget(name: "ComposableNavigatorTCATests", dependencies: ["ComposableNavigatorTCA", "SnapshotTesting"], exclude: tcaSnapshotFolders), // dev
]
)
#if canImport(PackageConfig)
import PackageConfig
let config = PackageConfiguration(
[
"rocket": [
"pre_release_checks": [
"clean_git"
],
"before": [
// "make test",
// "make cleanup",
]
]
]
)
.write()
#endif