forked from Boilertalk/Web3.swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
51 lines (47 loc) · 1.69 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "Web3",
products: [
.library(
name: "Web3",
targets: ["Web3"]),
.library(
name: "Web3PromiseKit",
targets: ["Web3PromiseKit"]),
.library(
name: "Web3ContractABI",
targets: ["Web3ContractABI"]),
],
dependencies: [
// Core dependencies
.package(url: "https://github.com/attaswift/BigInt.git", from: "4.0.0"),
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.0.0"),
.package(url: "https://github.com/Boilertalk/secp256k1.swift.git", from: "0.1.1"),
// PromiseKit dependency
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.0.0"),
// Test dependencies
.package(url: "https://github.com/Quick/Quick.git", from: "2.1.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "8.0.2")
],
targets: [
.target(
name: "Web3",
dependencies: ["BigInt", "CryptoSwift", "secp256k1"],
path: "Web3/Classes",
sources: ["Core", "FoundationHTTP"]),
.target(
name: "Web3PromiseKit",
dependencies: ["Web3", "PromiseKit"],
path: "Web3/Classes",
sources: ["PromiseKit"]),
.target(
name: "Web3ContractABI",
dependencies: ["Web3", "BigInt", "CryptoSwift"],
path: "Web3/Classes",
sources: ["ContractABI"]),
.testTarget(
name: "Web3Tests",
dependencies: ["Web3", "Web3PromiseKit", "Web3ContractABI", "Quick", "Nimble"])
]
)