@@ -24,7 +24,7 @@ let package = Package(
2424 . library( name: " RemoteNotificationsClient " , targets: [ " RemoteNotificationsClient " ] ) ,
2525 . library( name: " UIApplicationClient " , targets: [ " UIApplicationClient " ] ) ,
2626 . library( name: " UserDefaultsClient " , targets: [ " UserDefaultsClient " ] ) ,
27-
27+
2828 . library( name: " AttachmentClient " , targets: [ " AttachmentClient " ] ) ,
2929 . library( name: " AttachmentClientLive " , targets: [ " AttachmentClientLive " ] ) ,
3030 . library( name: " AuthClient " , targets: [ " AuthClient " ] ) ,
@@ -44,18 +44,18 @@ let package = Package(
4444 . library( name: " UserClientLive " , targets: [ " UserClientLive " ] ) ,
4545 . library( name: " WebsocketClient " , targets: [ " WebsocketClient " ] ) ,
4646 . library( name: " WebsocketClientLive " , targets: [ " WebsocketClientLive " ] ) ,
47-
47+
4848 // Views
4949 . library( name: " AuthenticationView " , targets: [ " AuthenticationView " ] ) ,
5050 . library( name: " ChatView " , targets: [ " ChatView " ] ) ,
51- . library( name: " ConversationView " , targets: [ " ConversationView " ] ) ,
51+ . library( name: " ConversationsView " , targets: [ " ConversationsView " ] ) ,
5252 . library( name: " ContactsView " , targets: [ " ContactsView " ] ) ,
5353 . library( name: " EventView " , targets: [ " EventView " ] ) ,
5454 . library( name: " EventForm " , targets: [ " EventForm " ] ) ,
5555 . library( name: " ProfileView " , targets: [ " ProfileView " ] ) ,
5656 . library( name: " TabsView " , targets: [ " TabsView " ] ) ,
5757 . library( name: " SettingsView " , targets: [ " SettingsView " ] ) ,
58-
58+
5959 // Helpers
6060 . library( name: " NotificationHelpers " , targets: [ " NotificationHelpers " ] ) ,
6161 . library( name: " SwiftUIHelpers " , targets: [ " SwiftUIHelpers " ] ) ,
@@ -66,11 +66,11 @@ let package = Package(
6666 dependencies: [
6767 . package ( name: " AWSSDKSwift " , url: " https://github.com/swift-aws/aws-sdk-swift.git " , from: " 4.9.0 " ) ,
6868 . package ( url: " https://github.com/marmelroy/PhoneNumberKit " , . upToNextMajor( from: " 3.3.3 " ) ) ,
69- . package ( url: " https://github.com/pointfreeco/swift-composable-architecture.git " , from: " 0.17.0 " ) ,
69+ . package ( url: " https://github.com/pointfreeco/swift-composable-architecture.git " , from: " 0.17.0 " ) ,
7070 . package ( url: " https://github.com/pointfreeco/composable-core-location " , from: " 0.1.0 " ) ,
7171 . package ( url: " https://github.com/pointfreeco/xctest-dynamic-overlay " , from: " 0.1.0 " ) ,
7272 . package ( url: " https://github.com/AddaMeSPB/CombineContacts.git " , from: " 1.0.0 " ) ,
73- . package ( url: " https://github.com/AddaMeSPB/HttpRequest.git " , from: " 1.0.1 " ) ,
73+ . package ( url: " https://github.com/AddaMeSPB/HttpRequest.git " , from: " 1.0.1 " )
7474 ] ,
7575
7676 targets: [
@@ -81,9 +81,9 @@ let package = Package(
8181 " UserNotificationClient " , " RemoteNotificationsClient " , " NotificationHelpers " ,
8282 " AuthClient " , " AuthClientLive " , " AttachmentClient " , " ChatClient " , " ContactClient " ,
8383 " ConversationClient " , " EventClient " , " UserClient " , " WebsocketClient " ,
84-
85- " EventView " , " ConversationView " , " ProfileView " , " TabsView " , " AuthenticationView " ,
86- " SettingsView " ,
84+
85+ " EventView " , " ConversationsView " , " ProfileView " , " TabsView " , " AuthenticationView " ,
86+ " SettingsView "
8787 ] ) ,
8888
8989 . testTarget(
@@ -104,7 +104,12 @@ let package = Package(
104104 " KeychainService " , " FoundationExtension "
105105 ]
106106 ) ,
107- . target( name: " CoreDataStore " ) ,
107+ . target(
108+ name: " CoreDataStore " ,
109+ dependencies: [
110+ " SharedModels " , " FoundationExtension "
111+ ]
112+ ) ,
108113 . target( name: " FoundationExtension " ) ,
109114
110115 // Client
@@ -113,35 +118,35 @@ let package = Package(
113118 dependencies: [
114119 . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " )
115120 ] ) ,
116-
121+
117122 . target(
118123 name: " UserNotificationClient " ,
119124 dependencies: [
120125 . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " )
121126 ] ) ,
122-
127+
123128 . target(
124129 name: " UIApplicationClient " ,
125130 dependencies: [
126131 . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " ) ,
127- . product( name: " XCTestDynamicOverlay " , package : " xctest-dynamic-overlay " ) ,
132+ . product( name: " XCTestDynamicOverlay " , package : " xctest-dynamic-overlay " )
128133 ]
129134 ) ,
130135
131136 . target(
132137 name: " UserDefaultsClient " ,
133138 dependencies: [
134139 . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " ) ,
135- . product( name: " XCTestDynamicOverlay " , package : " xctest-dynamic-overlay " ) ,
140+ . product( name: " XCTestDynamicOverlay " , package : " xctest-dynamic-overlay " )
136141 ]
137142 ) ,
138-
143+
139144 . target(
140145 name: " CoreDataClient " ,
141146 dependencies: [
142- " CoreDataStore " , " ContactClient " , " ContactClientLive " , " SharedModels " ,
147+ " CoreDataStore " , " ContactClient " , " ContactClientLive " , " SharedModels "
143148 ] ) ,
144-
149+
145150 . target(
146151 name: " AttachmentClient " ,
147152 dependencies: [
@@ -199,32 +204,31 @@ let package = Package(
199204 name: " UserClient " ,
200205 dependencies: [ " SharedModels " , " HttpRequest " , " KeychainService " , " InfoPlist " ] ) ,
201206 . target( name: " UserClientLive " , dependencies: [ " UserClient " ] ) ,
202-
207+
203208 . target(
204209 name: " WebsocketClient " ,
205210 dependencies: [ " FoundationExtension " , " HttpRequest " , " SharedModels " , " InfoPlist " , " KeychainService " ] ) ,
206211 . target(
207212 name: " WebsocketClientLive " ,
208213 dependencies: [ " WebsocketClient " ] ) ,
209-
214+
210215 // Views
211216 . target(
212217 name: " AuthenticationView " ,
213218 dependencies: [
214219 . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " ) ,
215220 " PhoneNumberKit " , " SharedModels " , " AuthClient " , " KeychainService " ,
216- " HttpRequest " , " AuthClientLive " ,
221+ " HttpRequest " , " AuthClientLive "
217222 ] ) ,
218223
219-
220224 . target(
221225 name: " TabsView " ,
222226 dependencies: [
223227 . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " ) ,
224228 " AuthClient " , " AuthClientLive " , " UserClient " , " UserClientLive " ,
225229 " EventClient " , " EventClientLive " , " AttachmentClient " , " AttachmentClientLive " ,
226230 " PathMonitorClient " , " PathMonitorClientLive " , " ConversationClient " , " ConversationClientLive " ,
227- " EventView " , " ConversationView " , " ProfileView " ,
231+ " EventView " , " ConversationsView " , " ProfileView " ,
228232 " SwiftUIExtension "
229233 ] ) ,
230234
@@ -239,28 +243,31 @@ let package = Package(
239243 " WebsocketClientLive "
240244 ]
241245 ) ,
242-
246+
243247 . target(
244- name: " ConversationView " ,
248+ name: " ConversationsView " ,
245249 dependencies: [
246250 . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " ) ,
247251 " SharedModels " , " InfoPlist " , " KeychainService " ,
248- " WebsocketClient " , " ConversationClient " , " ChatClient " ,
252+ " WebsocketClient " , " ChatClient " , " ChatClientLive " ,
249253 " SwiftUIExtension " , " FoundationExtension " , " AsyncImageLoder " ,
250- " HttpRequest " , " ChatClientLive " , " ConversationClientLive " ,
251- " WebsocketClientLive " , " ChatView " , " ComposableArchitectureHelpers "
254+ " HttpRequest " , " ConversationClient " , " ConversationClientLive " ,
255+ " WebsocketClientLive " , " ChatView " , " ComposableArchitectureHelpers " ,
256+ " ContactClient " , " ContactClientLive " , " ContactsView " , " CoreDataClient "
252257 ]
253258 ) ,
254-
259+
255260 . target(
256261 name: " ContactsView " ,
257262 dependencies: [
258263 . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " ) ,
259264 " SharedModels " , " AsyncImageLoder " , " HttpRequest " ,
260- " ContactClient " , " ContactClientLive " ,
265+ " ContactClient " , " ContactClientLive " , " WebsocketClient " ,
266+ " WebsocketClientLive " , " ChatClient " , " ChatClientLive " ,
261267 " CoreDataStore " , " CoreDataClient " ,
268+ " ChatView " , " ComposableArchitectureHelpers "
262269 ] ) ,
263-
270+
264271 . target(
265272 name: " EventView " ,
266273 dependencies: [
@@ -270,18 +277,18 @@ let package = Package(
270277 " PathMonitorClient " , " WebsocketClient " , " ConversationClient " ,
271278 " SwiftUIExtension " , " FoundationExtension " , " AsyncImageLoder " ,
272279 " HttpRequest " , " KeychainService " , " ChatClient " ,
273- " PathMonitorClientLive " , " EventClientLive " , " ComposableArchitectureHelpers " ,
280+ " PathMonitorClientLive " , " EventClientLive " , " ComposableArchitectureHelpers "
274281 ]
275282 ) ,
276-
283+
277284 . target(
278285 name: " EventForm " ,
279286 dependencies: [
280287 . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " ) ,
281- " SharedModels " , " EventClient " , " InfoPlist " ,
288+ " SharedModels " , " EventClient " , " InfoPlist "
282289 ]
283290 ) ,
284-
291+
285292 . target(
286293 name: " ProfileView " ,
287294 dependencies: [
@@ -291,35 +298,35 @@ let package = Package(
291298 " SwiftUIExtension " , " FoundationExtension " , " AsyncImageLoder " ,
292299 " HttpRequest " , " KeychainService " , " AuthenticationView " ,
293300 " AttachmentClientLive " , " AuthClientLive " , " UserClientLive " ,
294- " EventClientLive " ,
301+ " EventClientLive "
295302 ]
296303 ) ,
297-
304+
298305 . target(
299306 name: " SettingsView " ,
300307 dependencies: [
301308 " UIApplicationClient " , " UserDefaultsClient " ,
302309 . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " ) ,
303- . product( name: " XCTestDynamicOverlay " , package : " xctest-dynamic-overlay " ) ,
310+ . product( name: " XCTestDynamicOverlay " , package : " xctest-dynamic-overlay " )
304311 ]
305312 ) ,
306-
313+
307314 // Helpers
308315 . target(
309316 name: " NotificationHelpers " ,
310317 dependencies: [
311318 " UserNotificationClient " , " RemoteNotificationsClient " ,
312- . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " ) ,
319+ . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " )
313320 ]
314321 ) ,
315-
322+
316323 . target( name: " SwiftUIHelpers " ) ,
317324 . target( name: " CombineHelpers " ) ,
318325 . target(
319326 name: " ComposableArchitectureHelpers " ,
320327 dependencies: [
321328 . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " )
322329 ]
323- ) ,
330+ )
324331 ]
325332)
0 commit comments