forked from flypaper0/Web3.swift
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Package.swift
73 lines (69 loc) · 2.41 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// swift-tools-version:5.2
import PackageDescription
let package = Package(
name: "Web3",
platforms: [
.iOS(.v10),
.macOS(.v10_12)
],
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: "5.0.0"),
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.0.0"),
.package(name: "secp256k1", 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: "3.0.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "8.1.2"),
],
targets: [
.target(
name: "Web3",
dependencies: [
.product(name: "BigInt", package: "BigInt"),
.product(name: "CryptoSwift", package: "CryptoSwift"),
.product(name: "secp256k1", package: "secp256k1"),
],
path: "Sources",
sources: ["Core", "FoundationHTTP"]),
.target(
name: "Web3PromiseKit",
dependencies: [
.target(name: "Web3"),
.product(name: "PromiseKit", package: "PromiseKit"),
],
path: "Sources",
sources: ["PromiseKit"]),
.target(
name: "Web3ContractABI",
dependencies: [
.target(name: "Web3"),
.product(name: "BigInt", package: "BigInt"),
.product(name: "CryptoSwift", package: "CryptoSwift"),
],
path: "Sources",
sources: ["ContractABI"]),
.testTarget(
name: "Web3Tests",
dependencies: [
.target(name: "Web3"),
.target(name: "Web3PromiseKit"),
.target(name: "Web3ContractABI"),
.product(name: "Quick", package: "Quick"),
.product(name: "Nimble", package: "Nimble"),
]),
],
swiftLanguageVersions: [.v5]
)