Skip to content

Commit

Permalink
Adding platforms to swift 5 specific package manifest, but keeping th…
Browse files Browse the repository at this point in the history
…e one without it to retain spm compatibility for xcode 10.
  • Loading branch information
jeffctown committed Jan 23, 2020
1 parent 50127b1 commit 6c0eb1b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
5 changes: 1 addition & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// swift-tools-version:5.1
// swift-tools-version:4.0
import PackageDescription

let package = Package(
name: "OHHTTPStubs",
platforms: [
.macOS(.v10_10), .iOS(.v8), .watchOS(.v2), .tvOS(.v9)
],
products: [
.library(
name: "OHHTTPStubs",
Expand Down
41 changes: 41 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// swift-tools-version:5.0
import PackageDescription

let package = Package(
name: "OHHTTPStubs",
platforms: [
.macOS(.v10_10), .iOS(.v8), .watchOS(.v2), .tvOS(.v9)
],
products: [
.library(
name: "OHHTTPStubs",
targets: [
"OHHTTPStubs",
]
),
.library(
name: "OHHTTPStubsSwift",
targets: [
"OHHTTPStubs",
"OHHTTPStubsSwift"
]
)
],
dependencies: [
],
targets: [
.target(
name: "OHHTTPStubs",
dependencies: []),
.testTarget(
name: "OHHTTPStubsTests",
dependencies: ["OHHTTPStubs"]),
.target(
name: "OHHTTPStubsSwift",
dependencies: ["OHHTTPStubs"]),
.testTarget(
name: "OHHTTPStubsSwiftTests",
dependencies: ["OHHTTPStubsSwift", "OHHTTPStubs"]
)
]
)

0 comments on commit 6c0eb1b

Please sign in to comment.