From 8f80d5dd0ce4b00b9c2998c3e56fc6314a33903d Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Fri, 14 Dec 2018 00:20:59 +0300 Subject: [PATCH] Updated Swift Package --- Package.swift | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/Package.swift b/Package.swift index 119fcda..4f4cd5d 100644 --- a/Package.swift +++ b/Package.swift @@ -3,21 +3,10 @@ import PackageDescription +let name = "secp256k1" + let package = Package( - name: "secp256k1", - products: [ - // Products define the executables and libraries produced by a package, and make them visible to other packages. - .library( - name: "secp256k1", - targets: ["secp256k1"]), - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), - ], - targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages which this package depends on. - .target(name: "secp256k1", path: "secp256k1") - ] + name: name, + products: [.library( name: name, targets: [name])], + targets: [.target(name: name, path: name)] )