-
Notifications
You must be signed in to change notification settings - Fork 183
/
WalletConnectSwiftV2.podspec
152 lines (126 loc) · 5.49 KB
/
WalletConnectSwiftV2.podspec
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
require "json"
package = JSON.parse(File.read(File.join(__dir__, "Sources/WalletConnectRelay/PackageConfig.json")))
Pod::Spec.new do |spec|
spec.name = "WalletConnectSwiftV2"
spec.version = package["version"]
spec.summary = "Swift implementation of WalletConnect v.2 protocol for native iOS applications."
spec.description = "The communications protocol for web3, WalletConnect brings the ecosystem together by enabling wallets and apps to securely connect and interact."
spec.homepage = "https://walletconnect.com"
spec.license = { :type => 'Apache-2.0', :file => 'LICENSE' }
spec.authors = "WalletConnect, Inc."
spec.social_media_url = "https://twitter.com/WalletConnect"
spec.source = {
:git => 'https://github.com/WalletConnect/WalletConnectSwiftV2.git',
:tag => spec.version.to_s
}
spec.platform = :ios, '13.0'
spec.swift_versions = '5.3'
spec.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => '-DCocoaPods'
}
spec.default_subspecs = 'WalletConnect'
spec.subspec 'WalletConnect' do |ss|
ss.source_files = 'Sources/Web3Wallet/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectSign'
ss.dependency 'WalletConnectSwiftV2/WalletConnectAuth'
ss.dependency 'WalletConnectSwiftV2/WalletConnectPush'
ss.dependency 'WalletConnectSwiftV2/WalletConnectVerify'
end
spec.subspec 'WalletConnectSign' do |ss|
ss.source_files = 'Sources/WalletConnectSign/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectPairing'
ss.dependency 'WalletConnectSwiftV2/WalletConnectSigner'
ss.dependency 'WalletConnectSwiftV2/WalletConnectVerify'
ss.dependency 'WalletConnectSwiftV2/Events'
end
spec.subspec 'WalletConnectAuth' do |ss|
ss.source_files = 'Sources/Auth/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectPairing'
ss.dependency 'WalletConnectSwiftV2/WalletConnectSigner'
ss.dependency 'WalletConnectSwiftV2/WalletConnectVerify'
end
spec.subspec 'WalletConnectVerify' do |ss|
ss.source_files = 'Sources/WalletConnectVerify/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectUtils'
ss.dependency 'WalletConnectSwiftV2/WalletConnectNetworking'
end
spec.subspec 'WalletConnectChat' do |ss|
ss.source_files = 'Sources/Chat/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectSync'
ss.dependency 'WalletConnectSwiftV2/WalletConnectIdentity'
end
spec.subspec 'WalletConnectSync' do |ss|
ss.source_files = 'Sources/WalletConnectSync/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectSigner'
end
spec.subspec 'WalletConnectSigner' do |ss|
ss.source_files = 'Sources/WalletConnectSigner/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectNetworking'
end
spec.subspec 'WalletConnectIdentity' do |ss|
ss.source_files = 'Sources/WalletConnectIdentity/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectNetworking'
ss.dependency 'WalletConnectSwiftV2/WalletConnectJWT'
end
spec.subspec 'WalletConnectPush' do |ss|
ss.source_files = 'Sources/WalletConnectPush/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectNetworking'
ss.dependency 'WalletConnectSwiftV2/WalletConnectJWT'
end
spec.subspec 'WalletConnectJWT' do |ss|
ss.source_files = 'Sources/WalletConnectJWT/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectKMS'
end
spec.subspec 'WalletConnectNetworking' do |ss|
ss.source_files = 'Sources/WalletConnectNetworking/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectRelay'
ss.dependency 'WalletConnectSwiftV2/HTTPClient'
end
spec.subspec 'WalletConnectPairing' do |ss|
ss.source_files = 'Sources/WalletConnectPairing/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectNetworking'
ss.dependency 'WalletConnectSwiftV2/Events'
end
spec.subspec 'WalletConnectRouter' do |ss|
ss.source_files = 'Sources/WalletConnectRouter/**/*.{h,m,swift}'
ss.platform = :ios
end
spec.subspec 'WalletConnectRelay' do |ss|
ss.source_files = 'Sources/WalletConnectRelay/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectJWT'
ss.resource_bundles = {
'WalletConnect_WalletConnectRelay' => [
'Sources/WalletConnectRelay/PackageConfig.json'
]
}
end
spec.subspec 'WalletConnectUtils' do |ss|
ss.source_files = 'Sources/WalletConnectUtils/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/JSONRPC'
end
spec.subspec 'WalletConnectKMS' do |ss|
ss.source_files = 'Sources/WalletConnectKMS/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectUtils'
end
spec.subspec 'Commons' do |ss|
ss.source_files = 'Sources/Commons/**/*.{h,m,swift}'
end
spec.subspec 'Events' do |ss|
ss.source_files = 'Sources/Events/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectNetworking'
ss.dependency 'WalletConnectSwiftV2/WalletConnectUtils'
end
spec.subspec 'JSONRPC' do |ss|
ss.source_files = 'Sources/JSONRPC/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/Commons'
end
spec.subspec 'HTTPClient' do |ss|
ss.source_files = 'Sources/HTTPClient/**/*.{h,m,swift}'
end
spec.subspec 'WalletConnectModal' do |ss|
ss.source_files = 'Sources/WalletConnectModal/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectSign'
ss.dependency 'DSF_QRCode', '~> 16.1.1'
ss.platform = :ios
end
end