Skip to content

Commit 1e90989

Browse files
authored
Merge pull request #42 from sidepelican/minios
Set min platform versions
2 parents b874bfa + c97bfbd commit 1e90989

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Package.swift

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

66
let package = Package(
77
name: "CallableKit",
8-
platforms: [.macOS(.v14)],
8+
platforms: [
9+
.macOS(.v10_15),
10+
.iOS(.v13),
11+
.tvOS(.v13),
12+
.watchOS(.v6),
13+
.macCatalyst(.v13),
14+
],
915
products: [
1016
.library(name: "CallableKit", targets: ["CallableKit"]),
1117
.library(name: "CallableKitURLSessionStub", targets: ["CallableKitURLSessionStub"]),

Sources/CallableKitURLSessionStub/URLSessionStubClient.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ private func makeEncoder() -> JSONEncoder {
9898
return encoder
9999
}
100100

101+
#if compiler(<6.0)
101102
#if canImport(FoundationNetworking)
102103
extension URLSession {
103104
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
@@ -121,3 +122,4 @@ extension URLSession {
121122
}
122123
}
123124
#endif
125+
#endif

0 commit comments

Comments
 (0)