forked from WalletConnect/WalletConnectSwiftV2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
101 lines (99 loc) · 3.42 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "WalletConnect",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13)
],
products: [
.library(
name: "WalletConnect",
targets: ["WalletConnectSign"]),
.library(
name: "WalletConnectChat",
targets: ["Chat"]),
.library(
name: "WalletConnectAuth",
targets: ["Auth"]),
.library(
name: "WalletConnectRouter",
targets: ["WalletConnectRouter"])
],
dependencies: [
.package(url: "https://github.com/flypaper0/Web3.swift", .branch("feature/eip-155"))
],
targets: [
.target(
name: "WalletConnectSign",
dependencies: ["WalletConnectRelay", "WalletConnectUtils", "WalletConnectKMS", "WalletConnectPairing"],
path: "Sources/WalletConnectSign"),
.target(
name: "Chat",
dependencies: ["WalletConnectRelay", "WalletConnectUtils", "WalletConnectKMS"],
path: "Sources/Chat"),
.target(
name: "Auth",
dependencies: [
"WalletConnectRelay",
"WalletConnectUtils",
"WalletConnectKMS",
"WalletConnectPairing",
.product(name: "Web3", package: "Web3.swift")
],
path: "Sources/Auth"),
.target(
name: "WalletConnectRelay",
dependencies: ["WalletConnectUtils", "WalletConnectKMS"],
path: "Sources/WalletConnectRelay"),
.target(
name: "WalletConnectKMS",
dependencies: ["WalletConnectUtils"],
path: "Sources/WalletConnectKMS"),
.target(
name: "WalletConnectPairing",
dependencies: ["WalletConnectUtils"]),
.target(
name: "WalletConnectUtils",
dependencies: ["Commons", "JSONRPC"]),
.target(
name: "JSONRPC",
dependencies: ["Commons"]),
.target(
name: "Commons",
dependencies: []),
.target(
name: "WalletConnectRouter",
dependencies: []),
.testTarget(
name: "WalletConnectSignTests",
dependencies: ["WalletConnectSign", "TestingUtils"]),
.testTarget(
name: "ChatTests",
dependencies: ["Chat", "WalletConnectUtils", "TestingUtils"]),
.testTarget(
name: "AuthTests",
dependencies: ["Auth", "WalletConnectUtils", "TestingUtils"]),
.testTarget(
name: "RelayerTests",
dependencies: ["WalletConnectRelay", "WalletConnectUtils", "TestingUtils"]),
.testTarget(
name: "WalletConnectKMSTests",
dependencies: ["WalletConnectKMS", "WalletConnectUtils", "TestingUtils"]),
.target(
name: "TestingUtils",
dependencies: ["WalletConnectUtils", "WalletConnectKMS", "JSONRPC"],
path: "Tests/TestingUtils"),
.testTarget(
name: "WalletConnectUtilsTests",
dependencies: ["WalletConnectUtils", "TestingUtils"]),
.testTarget(
name: "JSONRPCTests",
dependencies: ["JSONRPC", "TestingUtils"]),
.testTarget(
name: "CommonsTests",
dependencies: ["Commons", "TestingUtils"])
],
swiftLanguageVersions: [.v5]
)