Skip to content

Commit

Permalink
rename API to APIClient
Browse files Browse the repository at this point in the history
  • Loading branch information
ski-u committed Apr 24, 2024
1 parent 088318f commit ebe73f3
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions AllTests.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
{
"target" : {
"containerPath" : "container:Features",
"identifier" : "APITests",
"name" : "APITests"
"identifier" : "APIClientTests",
"name" : "APIClientTests"
}
},
{
Expand Down
14 changes: 7 additions & 7 deletions Features/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ let package = Package(
platforms: [.iOS(.v16)],
products: [
.library(
name: "API",
targets: ["API"]
name: "APIClient",
targets: ["APIClient"]
),
.library(
name: "Features",
Expand All @@ -34,15 +34,15 @@ let package = Package(
],
targets: [
.target(
name: "API",
name: "APIClient",
dependencies: [
"Models",
.product(name: "Dependencies", package: "swift-dependencies"),
]
),
.testTarget(
name: "APITests",
dependencies: ["API"]
name: "APIClientTests",
dependencies: ["APIClient"]
),
.target(
name: "Features",
Expand All @@ -66,7 +66,7 @@ let package = Package(
.target(
name: "Settings",
dependencies: [
"API",
"APIClient",
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
]
),
Expand All @@ -77,7 +77,7 @@ let package = Package(
.target(
name: "Today",
dependencies: [
"API",
"APIClient",
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
]
),
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Features/Sources/Settings/APIKeyReducer.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import API
import APIClient
import ComposableArchitecture
import Models

Expand Down
2 changes: 1 addition & 1 deletion Features/Sources/Today/TodayReducer.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import API
import APIClient
import ComposableArchitecture
import Foundation
import Models
Expand Down
4 changes: 4 additions & 0 deletions Features/Tests/APIClientTests/APIClientTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@testable import APIClient
import XCTest

final class APIClientTests: XCTestCase {}
4 changes: 0 additions & 4 deletions Features/Tests/APITests/APITests.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Features/Tests/TodayTests/TodayTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import API
import APIClient
import ComposableArchitecture
@testable import Today
import Models
Expand Down

0 comments on commit ebe73f3

Please sign in to comment.