diff --git a/Apps/Locations/Libraries/Package.swift b/Apps/Locations/Libraries/Package.swift index eb9c786..301153d 100644 --- a/Apps/Locations/Libraries/Package.swift +++ b/Apps/Locations/Libraries/Package.swift @@ -11,21 +11,15 @@ let package = Package( .library( name: "Libraries", targets: [ - "API", "Core", "Dependency", - "Persistence" + "Persistence", + "Remote" ] ), ], dependencies: [], targets: [ - .target( - name: "API", - dependencies: [ - "APICore" - ] - ), .target( name: "APICore", dependencies: [] @@ -42,11 +36,10 @@ let package = Package( name: "Persistence", dependencies: [] ), - .testTarget( - name: "APITests", + .target( + name: "Remote", dependencies: [ - "APICore", - "API" + "APICore" ] ), .testTarget( @@ -73,5 +66,12 @@ let package = Package( "Persistence" ] ), + .testTarget( + name: "RemoteTests", + dependencies: [ + "APICore", + "Remote" + ] + ), ] ) diff --git a/Apps/Locations/Libraries/Sources/API/Clients/LocationsClient.swift b/Apps/Locations/Libraries/Sources/Remote/Clients/LocationsClient.swift similarity index 100% rename from Apps/Locations/Libraries/Sources/API/Clients/LocationsClient.swift rename to Apps/Locations/Libraries/Sources/Remote/Clients/LocationsClient.swift diff --git a/Apps/Locations/Libraries/Sources/API/Endpoints/GetLocationsEndpoint.swift b/Apps/Locations/Libraries/Sources/Remote/Endpoints/GetLocationsEndpoint.swift similarity index 100% rename from Apps/Locations/Libraries/Sources/API/Endpoints/GetLocationsEndpoint.swift rename to Apps/Locations/Libraries/Sources/Remote/Endpoints/GetLocationsEndpoint.swift diff --git a/Apps/Locations/Libraries/Sources/API/Extensions/String+Constants.swift b/Apps/Locations/Libraries/Sources/Remote/Extensions/String+Constants.swift similarity index 100% rename from Apps/Locations/Libraries/Sources/API/Extensions/String+Constants.swift rename to Apps/Locations/Libraries/Sources/Remote/Extensions/String+Constants.swift diff --git a/Apps/Locations/Libraries/Sources/API/Models/Location.swift b/Apps/Locations/Libraries/Sources/Remote/Models/Location.swift similarity index 100% rename from Apps/Locations/Libraries/Sources/API/Models/Location.swift rename to Apps/Locations/Libraries/Sources/Remote/Models/Location.swift diff --git a/Apps/Locations/Libraries/Sources/API/Services/LocationsService.swift b/Apps/Locations/Libraries/Sources/Remote/Services/LocationsService.swift similarity index 100% rename from Apps/Locations/Libraries/Sources/API/Services/LocationsService.swift rename to Apps/Locations/Libraries/Sources/Remote/Services/LocationsService.swift diff --git a/Apps/Locations/Libraries/Tests/APITests/Clients/LocationsClientTests.swift b/Apps/Locations/Libraries/Tests/RemoteTests/Clients/LocationsClientTests.swift similarity index 100% rename from Apps/Locations/Libraries/Tests/APITests/Clients/LocationsClientTests.swift rename to Apps/Locations/Libraries/Tests/RemoteTests/Clients/LocationsClientTests.swift diff --git a/Apps/Locations/Libraries/Tests/APITests/Endpoints/GetLocationsEndpointTests.swift b/Apps/Locations/Libraries/Tests/RemoteTests/Endpoints/GetLocationsEndpointTests.swift similarity index 100% rename from Apps/Locations/Libraries/Tests/APITests/Endpoints/GetLocationsEndpointTests.swift rename to Apps/Locations/Libraries/Tests/RemoteTests/Endpoints/GetLocationsEndpointTests.swift diff --git a/Apps/Locations/Libraries/Tests/APITests/Helpers/Data+Constants.swift b/Apps/Locations/Libraries/Tests/RemoteTests/Helpers/Data+Constants.swift similarity index 100% rename from Apps/Locations/Libraries/Tests/APITests/Helpers/Data+Constants.swift rename to Apps/Locations/Libraries/Tests/RemoteTests/Helpers/Data+Constants.swift diff --git a/Apps/Locations/Libraries/Tests/APITests/Services/LocationsServiceTests.swift b/Apps/Locations/Libraries/Tests/RemoteTests/Services/LocationsServiceTests.swift similarity index 100% rename from Apps/Locations/Libraries/Tests/APITests/Services/LocationsServiceTests.swift rename to Apps/Locations/Libraries/Tests/RemoteTests/Services/LocationsServiceTests.swift