Skip to content

Commit 8aae5a8

Browse files
committed
fixed spm dependecies
1 parent 1d40b47 commit 8aae5a8

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

Package.swift

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,32 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "Web3swift",
8-
products: [
9-
// Products define the executables and libraries produced by a package, and make them visible to other packages.
10-
.library(name: "web3swift", targets: ["web3swift"]),
7+
name: "Web3swift",
8+
platforms: [
9+
.macOS(.v10_12), .iOS(.v11),
1110
],
12-
dependencies: [
13-
.package(url: "https://github.com/attaswift/BigInt.git", from: "5.2"),
14-
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.15.3"),
15-
.package(url: "https://github.com/daltoniam/Starscream.git", from: "4.0.4"),
16-
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.4.0"),
11+
products: [
12+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
13+
.library(name: "web3swift", targets: ["web3swift"]),
1714
],
18-
targets: [
19-
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20-
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
21-
.target(name: "secp256k1"),
22-
.target(
23-
name: "web3swift",
24-
dependencies: ["BigInt", "secp256k1", "PromiseKit", "Starscream", "CryptoSwift"],
25-
exclude: [
26-
]),
27-
.testTarget(
28-
name: "web3swiftTests",
29-
dependencies: ["web3swift"]),
15+
16+
dependencies: [
17+
.package(url: "https://github.com/attaswift/BigInt.git", from: "5.2.0"),
18+
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.15.3"),
19+
.package(url: "https://github.com/daltoniam/Starscream.git", from: "4.0.4"),
20+
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.4.0"),
21+
],
22+
targets: [
23+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
24+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
25+
.target(name: "secp256k1"),
26+
.target(
27+
name: "web3swift",
28+
dependencies: ["BigInt", "secp256k1", "PromiseKit", "Starscream", "CryptoSwift"],
29+
exclude: [
30+
]),
31+
.testTarget(
32+
name: "web3swiftTests",
33+
dependencies: ["web3swift"]),
3034
]
3135
)

0 commit comments

Comments
 (0)