Skip to content

Commit 6c0eb1b

Browse files
committed
Adding platforms to swift 5 specific package manifest, but keeping the one without it to retain spm compatibility for xcode 10.
1 parent 50127b1 commit 6c0eb1b

File tree

2 files changed

+42
-4
lines changed

2 files changed

+42
-4
lines changed

Package.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
// swift-tools-version:5.1
1+
// swift-tools-version:4.0
22
import PackageDescription
33

44
let package = Package(
55
name: "OHHTTPStubs",
6-
platforms: [
7-
.macOS(.v10_10), .iOS(.v8), .watchOS(.v2), .tvOS(.v9)
8-
],
96
products: [
107
.library(
118
name: "OHHTTPStubs",

Package@swift-5.swift

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// swift-tools-version:5.0
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "OHHTTPStubs",
6+
platforms: [
7+
.macOS(.v10_10), .iOS(.v8), .watchOS(.v2), .tvOS(.v9)
8+
],
9+
products: [
10+
.library(
11+
name: "OHHTTPStubs",
12+
targets: [
13+
"OHHTTPStubs",
14+
]
15+
),
16+
.library(
17+
name: "OHHTTPStubsSwift",
18+
targets: [
19+
"OHHTTPStubs",
20+
"OHHTTPStubsSwift"
21+
]
22+
)
23+
],
24+
dependencies: [
25+
],
26+
targets: [
27+
.target(
28+
name: "OHHTTPStubs",
29+
dependencies: []),
30+
.testTarget(
31+
name: "OHHTTPStubsTests",
32+
dependencies: ["OHHTTPStubs"]),
33+
.target(
34+
name: "OHHTTPStubsSwift",
35+
dependencies: ["OHHTTPStubs"]),
36+
.testTarget(
37+
name: "OHHTTPStubsSwiftTests",
38+
dependencies: ["OHHTTPStubsSwift", "OHHTTPStubs"]
39+
)
40+
]
41+
)

0 commit comments

Comments
 (0)