-
Notifications
You must be signed in to change notification settings - Fork 180
/
Package.swift
174 lines (172 loc) · 6.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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "WalletConnect",
platforms: [
.iOS(.v13),
.macOS(.v11),
.tvOS(.v13)
],
products: [
.library(
name: "WalletConnect",
targets: ["WalletConnectSign"]),
.library(
name: "Web3Wallet",
targets: ["Web3Wallet"]),
.library(
name: "WalletConnectPairing",
targets: ["WalletConnectPairing"]),
.library(
name: "WalletConnectNotify",
targets: ["WalletConnectNotify"]),
.library(
name: "WalletConnectPush",
targets: ["WalletConnectPush"]),
.library(
name: "WalletConnectRouter",
targets: ["WalletConnectRouter", "WalletConnectRouterLegacy"]),
.library(
name: "WalletConnectNetworking",
targets: ["WalletConnectNetworking"]),
.library(
name: "WalletConnectVerify",
targets: ["WalletConnectVerify"]),
.library(
name: "WalletConnectModal",
targets: ["WalletConnectModal"]),
.library(
name: "WalletConnectIdentity",
targets: ["WalletConnectIdentity"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
.package(url: "https://github.com/WalletConnect/QRCode", from: "14.3.1")
],
targets: [
.target(
name: "WalletConnectSign",
dependencies: ["WalletConnectPairing", "WalletConnectVerify", "WalletConnectSigner", "Events"],
path: "Sources/WalletConnectSign",
resources: [.process("Resources/PrivacyInfo.xcprivacy")]),
.target(
name: "Web3Wallet",
dependencies: ["WalletConnectSign", "WalletConnectPush", "WalletConnectVerify"],
path: "Sources/Web3Wallet",
resources: [.process("Resources/PrivacyInfo.xcprivacy")]),
.target(
name: "WalletConnectNotify",
dependencies: ["WalletConnectPairing", "WalletConnectIdentity", "WalletConnectPush", "WalletConnectSigner", "Database"],
path: "Sources/WalletConnectNotify",
resources: [.process("Resources/PrivacyInfo.xcprivacy")]),
.target(
name: "WalletConnectPush",
dependencies: ["WalletConnectNetworking", "WalletConnectJWT"],
path: "Sources/WalletConnectPush",
resources: [.process("Resources/PrivacyInfo.xcprivacy")]),
.target(
name: "WalletConnectRelay",
dependencies: ["WalletConnectJWT"],
path: "Sources/WalletConnectRelay",
resources: [.copy("PackageConfig.json"), .process("Resources/PrivacyInfo.xcprivacy")]),
.target(
name: "WalletConnectKMS",
dependencies: ["WalletConnectUtils"],
path: "Sources/WalletConnectKMS"),
.target(
name: "WalletConnectPairing",
dependencies: ["WalletConnectNetworking", "Events"],
resources: [.process("Resources/PrivacyInfo.xcprivacy")]),
.target(
name: "WalletConnectSigner",
dependencies: ["WalletConnectNetworking"]),
.target(
name: "WalletConnectJWT",
dependencies: ["WalletConnectKMS"]),
.target(
name: "WalletConnectIdentity",
dependencies: ["WalletConnectNetworking"],
resources: [.process("Resources/PrivacyInfo.xcprivacy")]),
.target(
name: "WalletConnectUtils",
dependencies: ["JSONRPC"]),
.target(
name: "JSONRPC",
dependencies: ["Commons"]),
.target(
name: "Commons",
dependencies: []),
.target(
name: "HTTPClient",
dependencies: []),
.target(
name: "WalletConnectNetworking",
dependencies: ["HTTPClient", "WalletConnectRelay"]),
.target(
name: "WalletConnectRouterLegacy",
dependencies: [],
path: "Sources/WalletConnectRouter/RouterLegacy"),
.target(
name: "WalletConnectRouter",
dependencies: ["WalletConnectRouterLegacy"],
path: "Sources/WalletConnectRouter/Router"),
.target(
name: "WalletConnectVerify",
dependencies: ["WalletConnectUtils", "WalletConnectNetworking", "WalletConnectJWT"],
resources: [.process("Resources/PrivacyInfo.xcprivacy")]),
.target(
name: "Database",
dependencies: ["WalletConnectUtils"]),
.target(
name: "Events",
dependencies: ["WalletConnectUtils", "WalletConnectNetworking"]),
.target(
name: "WalletConnectModal",
dependencies: ["QRCode", "WalletConnectSign"],
exclude: ["Secrets/secrets.json.sample"],
resources: [
.copy("Secrets/secrets.json"),
.copy("Resources/Assets.xcassets"),
.process("Resources/PrivacyInfo.xcprivacy"),
]
),
.testTarget(
name: "WalletConnectSignTests",
dependencies: ["WalletConnectSign", "WalletConnectUtils", "TestingUtils", "WalletConnectVerify"]),
.testTarget(
name: "WalletConnectPairingTests",
dependencies: ["WalletConnectPairing", "TestingUtils"]),
.testTarget(
name: "NotifyTests",
dependencies: ["WalletConnectNotify", "TestingUtils"]),
.testTarget(
name: "RelayerTests",
dependencies: ["WalletConnectRelay", "WalletConnectUtils", "TestingUtils"]),
.testTarget(
name: "VerifyTests",
dependencies: ["WalletConnectVerify", "TestingUtils", "WalletConnectSign"]),
.testTarget(
name: "WalletConnectKMSTests",
dependencies: ["WalletConnectKMS", "WalletConnectUtils", "TestingUtils"]),
.target(
name: "TestingUtils",
dependencies: ["WalletConnectPairing"],
path: "Tests/TestingUtils"),
.testTarget(
name: "WalletConnectUtilsTests",
dependencies: ["WalletConnectUtils", "TestingUtils"]),
.testTarget(
name: "JSONRPCTests",
dependencies: ["JSONRPC", "TestingUtils"]),
.testTarget(
name: "CommonsTests",
dependencies: ["Commons", "TestingUtils"]),
.testTarget(
name: "WalletConnectModalTests",
dependencies: ["WalletConnectModal", "TestingUtils"]),
.testTarget(
name: "EventsTests",
dependencies: ["Events"]),
],
swiftLanguageVersions: [.v5]
)