From 4c92f0ac05139f782e006e1f9e5bf977c2123e69 Mon Sep 17 00:00:00 2001 From: Cole Dunsby Date: Thu, 19 Oct 2017 16:33:24 -0400 Subject: [PATCH 1/3] spm support --- Package.swift | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Package.swift diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..7052f37 --- /dev/null +++ b/Package.swift @@ -0,0 +1,17 @@ +// swift-tools-version:4.0 + +import PackageDescription + +let package = Package( + name: "Money", + products: [ + .library(name: "Money", targets: ["Money"]) + ], + dependencies: [ + .package(url: "https://github.com/danthorpe/ValueCoding.git", from: "3.0.0") + ], + targets: [ + .target(name: "Money", dependencies: ["ValueCoding"], path: "Sources"), + .testTarget(name: "MoneyTests", dependencies: ["Money"], path: "Tests") + ] +) From 2f99600d4803dd951fb01581efce99acbb7474e8 Mon Sep 17 00:00:00 2001 From: Cole Dunsby Date: Wed, 27 Dec 2017 00:01:43 -0500 Subject: [PATCH 2/3] removed dependencies --- Package.swift | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Package.swift b/Package.swift index 7052f37..a790d22 100644 --- a/Package.swift +++ b/Package.swift @@ -7,11 +7,8 @@ let package = Package( products: [ .library(name: "Money", targets: ["Money"]) ], - dependencies: [ - .package(url: "https://github.com/danthorpe/ValueCoding.git", from: "3.0.0") - ], targets: [ - .target(name: "Money", dependencies: ["ValueCoding"], path: "Sources"), - .testTarget(name: "MoneyTests", dependencies: ["Money"], path: "Tests") + .target(name: "Money", path: "Sources"), + .testTarget(name: "MoneyTests", path: "Tests") ] ) From 0b92ab05ef431bf7867aeb657bb29f84c7d09768 Mon Sep 17 00:00:00 2001 From: Cole Dunsby Date: Wed, 27 Dec 2017 00:08:47 -0500 Subject: [PATCH 3/3] fixed test target --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index a790d22..7f0cf5e 100644 --- a/Package.swift +++ b/Package.swift @@ -9,6 +9,6 @@ let package = Package( ], targets: [ .target(name: "Money", path: "Sources"), - .testTarget(name: "MoneyTests", path: "Tests") + .testTarget(name: "MoneyTests", dependencies: ["Money"], path: "Tests") ] )