This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
forked from Boilertalk/Web3.swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
82 lines (78 loc) · 2.94 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
74
75
76
77
78
79
80
81
82
// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "Web3",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.watchOS(.v6),
.tvOS(.v13),
.macCatalyst(.v14),
.driverKit(.v20),
],
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.3.0"),
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.6.0"),
.package(url: "https://github.com/GigaBitcoin/secp256k1.swift.git", from: "0.5.0"),
.package(url: "https://github.com/apple/swift-collections.git", .upToNextMajor(from: "1.0.3")),
.package(url: "https://github.com/vapor/websocket-kit", .upToNextMajor(from: "2.6.1")),
// PromiseKit dependency
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.18.1"),
// Test dependencies
.package(url: "https://github.com/Quick/Quick.git", from: "5.0.1"),
.package(url: "https://github.com/Quick/Nimble.git", from: "10.0.0"),
],
targets: [
.target(
name: "Web3",
dependencies: [
.product(name: "BigInt", package: "BigInt"),
.product(name: "CryptoSwift", package: "CryptoSwift"),
.product(name: "secp256k1", package: "secp256k1.swift", moduleAliases: ["secp256k1": "secp256k1_gigabitcoin"]),
.product(name: "Collections", package: "swift-collections"),
.product(name: "WebSocketKit", package: "websocket-kit"),
],
path: "Sources",
sources: ["Core", "FoundationHTTP"]),
.target(
name: "Web3PromiseKit",
dependencies: [
.target(name: "Web3"),
.target(name: "Web3ContractABI"),
.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]
)