-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
158 lines (156 loc) · 5.4 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
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "weather",
defaultLocalization: "en",
platforms: [
.iOS(.v15),
.watchOS(.v7),
.tvOS(.v15),
.macOS(.v11),
],
products: [
.library(name: "AppFeature", targets: ["AppFeature"]),
.library(name: "RegionalWeatherFeature", targets: ["RegionalWeatherFeature"]),
.library(name: "CountriesFeature", targets: ["CountriesFeature"]),
.library(name: "CountryFeature", targets: ["CountryFeature"]),
.library(name: "ApiClient", targets: ["ApiClient"]),
.library(name: "ApiClientLive", targets: ["ApiClientLive"]),
.library(name: "ServerRouter", targets: ["ServerRouter"]),
.library(name: "Resources", targets: ["Resources"]),
.library(name: "SharedExtensions", targets: ["SharedExtensions"]),
.library(name: "SharedModels", targets: ["SharedModels"]),
.library(name: "SharedViews", targets: ["SharedViews"]),
.library(name: "XCTestDebugSupport", targets: ["XCTestDebugSupport"]),
],
dependencies: [
.package(
url: "https://github.com/pointfreeco/swift-composable-architecture.git",
branch: "concurrency-updates"
// .upToNextMajor(from: "0.36.0")
),
.package(url: "https://github.com/pointfreeco/swift-url-routing", from: "0.2.0"),
.package(url: "https://github.com/pointfreeco/swift-parsing", from: "0.9.2"),
.package(
url: "https://github.com/pointfreeco/xctest-dynamic-overlay",
from: "0.2.1"
),
.package(url: "https://github.com/pointfreeco/swiftui-navigation", from: "0.1.0"),
],
targets: [
.target(
name: "AppFeature",
dependencies: [
"ApiClient",
"SharedModels",
"CountriesFeature",
"RegionalWeatherFeature",
.product(
name: "ComposableArchitecture",
package: "swift-composable-architecture"),
]
),
.target(
name: "RegionalWeatherFeature",
dependencies: [
"ApiClient",
"SharedExtensions",
"SharedModels",
"SharedViews",
.product(
name: "ComposableArchitecture",
package: "swift-composable-architecture"),
]
),
.target(
name: "CountriesFeature",
dependencies: [
"ApiClient",
"SharedExtensions",
"SharedModels",
"CountryFeature",
"SharedViews",
.product(
name: "ComposableArchitecture",
package: "swift-composable-architecture"),
]
),
.target(
name: "CountryFeature",
dependencies: [
"ApiClient",
"SharedExtensions",
"SharedModels",
"SharedViews",
.product(
name: "ComposableArchitecture",
package: "swift-composable-architecture"),
.product(name: "SwiftUINavigation", package: "swiftui-navigation"),
]
),
.target(
name: "ApiClient",
dependencies: [
"SharedModels",
"XCTestDebugSupport",
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
]
),
.target(
name: "ApiClientLive",
dependencies: [
"ApiClient",
"ServerRouter",
"SharedModels",
// .product(
// name: "ComposableArchitecture",
// package: "swift-composable-architecture"
// ),
]
),
.target(
name: "ServerRouter",
dependencies: [
"SharedModels",
.product(name: "Parsing", package: "swift-parsing"),
.product(name: "URLRouting", package: "swift-url-routing"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
]
),
.target(
name: "Resources",
dependencies: []
),
.target(
name: "SharedExtensions",
dependencies: []
),
.target(
name: "SharedModels",
dependencies: []
),
.target(
name: "SharedViews",
dependencies: []
),
.target(
name: "XCTestDebugSupport"
),
// .testTarget(
// name: "AppFeatureTests",
// dependencies: [
// "AppFeature",
// "TestHelpers",
// .product(name: "SnapshotTesting", package: "SnapshotTesting"),
// ]
// ),
.testTarget(
name: "RegionalWeatherFeatureTests",
dependencies: [
"RegionalWeatherFeature"
// "TestHelpers",
// .product(name: "SnapshotTesting", package: "SnapshotTesting"),
]
),
]
)