Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rocxteady committed Jun 5, 2024
1 parent bcd65bf commit d7bc2d1
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 24 deletions.
10 changes: 10 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/WPSwift.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "LocalizationTests"
BuildableName = "LocalizationTests"
BlueprintName = "LocalizationTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/rocxteady/Resting.git",
"state" : {
"revision" : "67fc1351f0ecc64f29a5c6f42c47f3b173e8240c",
"version" : "0.0.6"
"revision" : "667c7e7903e41ccd4ab8a39f4df0570a29f49ead",
"version" : "0.0.9"
}
}
],
Expand Down
16 changes: 9 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,32 @@ import PackageDescription
let package = Package(
name: "WPSwift",
defaultLocalization: "en",
platforms: [
.macOS(.v13),
.iOS(.v16)
],
platforms: [.iOS(.v15), .macOS(.v12), .watchOS(.v8), .tvOS(.v15)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "WPSwift",
targets: ["WPSwift"]),
],
dependencies: [
.package(url: "https://github.com/rocxteady/Resting.git", .upToNextMajor(from: "0.0.6")),
.package(url: "https://github.com/rocxteady/Resting.git", .upToNextMajor(from: "0.0.9")),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "WPSwift",
dependencies: ["Resting"],
resources: [.process("Resources/Mocks")]
resources: [.process("Resources")]
),
.testTarget(
name: "WPSwiftTests",
name: "LocalizationTests",
dependencies: ["WPSwift"]
),
.testTarget(
name: "WPSwiftTests",
dependencies: ["WPSwift"],
resources: [.process("Resources")]
)
]
)
15 changes: 0 additions & 15 deletions Sources/WPSwift/API/WPClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,6 @@ enum NetworkError: LocalizedError {
}
}

//extension NetworkError: Equatable {
// static func == (lhs: NetworkError, rhs: NetworkError) -> Bool {
// switch (lhs, rhs) {
// case (.urlMalformed, .urlMalformed):
// return true
// case (.api(let errorLeft), .api(let errorRight)):
// return errorLeft.code == errorRight.code
// case (.unknown, .unknown):
// return true
// default:
// return false
// }
// }
//}

public struct WPClient<RequestModel: Encodable, Response: Decodable> {
private let restClient: RestClient
private let requestConfig: RequestConfiguration
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d7bc2d1

Please sign in to comment.