Skip to content

Commit

Permalink
[SwiftPM] Use V4 PackageDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesyo committed Oct 5, 2017
1 parent 3f4d925 commit 1b35e1f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
16 changes: 16 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"object": {
"pins": [
{
"package": "Result",
"repositoryURL": "https://github.com/antitypical/Result.git",
"state": {
"branch": null,
"revision": "7477584259bfce2560a19e06ad9f71db441fff11",
"version": "3.2.4"
}
}
]
},
"version": 1
}
19 changes: 17 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
// swift-tools-version:4.0
import PackageDescription

let package = Package(
name: "APIKit",
products: [
.library(name: "APIKit", targets: ["APIKit"]),
],
dependencies: [
.Package(url: "https://github.com/antitypical/Result.git", majorVersion: 3),
.package(url: "https://github.com/antitypical/Result.git", from: "3.0.0"),
],
targets: [
.target(
name: "APIKit",
dependencies: ["Result"],
exclude: ["BodyParameters/AbstractInputStream.m"]
),
.testTarget(
name: "APIKitTests",
dependencies: ["APIKit"]
),
],
exclude: ["Sources/APIKit/BodyParameters/AbstractInputStream.m"]
swiftLanguageVersions: [4]
)

0 comments on commit 1b35e1f

Please sign in to comment.