Skip to content

Commit e07aed7

Browse files
authored
Merge pull request #2 from vox-humana/main
Enable macOS, watchOS and tvOS platforms
2 parents afdd05c + 3209dfa commit e07aed7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PackageDescription
55

66
let package = Package(
77
name: "APIClient",
8-
platforms: [.iOS(.v15), .macCatalyst(.v15)],
8+
platforms: [.iOS(.v15), .macCatalyst(.v15), .macOS(.v12), .watchOS(.v8), .tvOS(.v15)],
99
products: [
1010
.library(name: "APIClient", targets: ["APIClient"]),
1111
],

Tests/APIClientTests/APIClientTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ final class APIClientTests: XCTestCase {
7878
}
7979

8080
func testDecodingWithVoidResponse() async throws {
81+
#if os(watchOS)
82+
throw XCTSkip("Mocker URLProtocol isn't being called for POST requests on watchOS")
83+
#endif
84+
8185
// GIVEN
8286
let url = URL(string: "https://api.github.com/user")!
8387
Mock(url: url, dataType: .json, statusCode: 200, data: [

0 commit comments

Comments
 (0)