forked from WalletConnect/WalletConnectSwiftV2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWalletConnectSwiftV2.podspec
147 lines (117 loc) · 5.66 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
require "json"
package = JSON.parse(File.read(File.join(__dir__, "Sources/WalletConnectRelay/PackageConfig.json")))
#
# Be sure to run `pod spec lint WalletConnectSwiftV2.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#
Pod::Spec.new do |spec|
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# These will help people to find your library, and whilst it
# can feel like a chore to fill in it's definitely to your advantage. The
# summary should be tweet-length, and the description more in depth.
#
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' }
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Specify the authors of the library, with email addresses. Email addresses
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
# accepts just a name if you'd rather not provide an email address.
#
# Specify a social_media_url where others can refer to, for example a twitter
# profile URL.
#
spec.authors = "WalletConnect, Inc."
spec.social_media_url = "https://twitter.com/WalletConnect"
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Specify the location from where the source should be retrieved.
# Supports git, hg, bzr, svn and HTTP.
#
spec.source = {
:git => 'https://github.com/WalletConnect/WalletConnectSwiftV2.git',
:tag => spec.version.to_s
}
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# If this Pod runs only on iOS or OS X, then specify the platform and
# the deployment target. You can optionally include the target after the platform.
#
ios_deployment_target = '13.0'
osx_deployment_target = '10.15'
tvos_deployment_target = '13.0'
spec.swift_versions = '5.3'
spec.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => '-DCocoaPods'
}
spec.ios.deployment_target = ios_deployment_target
spec.osx.deployment_target = osx_deployment_target
spec.tvos.deployment_target = tvos_deployment_target
# ――― Sub Specs ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
spec.default_subspecs = 'WalletConnect'
spec.subspec 'WalletConnect' do |ss|
ss.source_files = 'Sources/WalletConnectSign/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectPairing'
end
spec.subspec 'WalletConnectAuth' do |ss|
ss.source_files = 'Sources/Auth/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectPairing'
end
spec.subspec 'Web3Wallet' do |ss|
ss.source_files = 'Sources/Web3Wallet/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnect'
ss.dependency 'WalletConnectSwiftV2/WalletConnectAuth'
end
spec.subspec 'WalletConnectChat' do |ss|
ss.source_files = 'Sources/Chat/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectNetworking'
end
spec.subspec 'WalletConnectNetworking' do |ss|
ss.source_files = 'Sources/WalletConnectNetworking/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectRelay'
end
spec.subspec 'WalletConnectPairing' do |ss|
ss.source_files = 'Sources/WalletConnectPairing/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectNetworking'
end
spec.subspec 'WalletConnectRouter' do |ss|
ss.source_files = 'Sources/WalletConnectRouter/**/*.{h,m,swift}'
ss.platform = :ios
end
spec.subspec 'WalletConnectNetworking' do |ss|
ss.source_files = 'Sources/WalletConnectNetworking/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectRelay'
end
spec.subspec 'WalletConnectRelay' do |ss|
ss.source_files = 'Sources/WalletConnectRelay/**/*.{h,m,swift}'
ss.dependency 'WalletConnectSwiftV2/WalletConnectKMS'
ss.resource_bundles = {
'WalletConnect_WalletConnectRelay' => [
'Sources/WalletConnectRelay/PackageConfig.json'
]
}
end
spec.subspec 'WalletConnectUtils' do |ss|
ss.source_files = 'Sources/WalletConnectUtils/**/*'
ss.dependency 'WalletConnectSwiftV2/JSONRPC'
end
spec.subspec 'WalletConnectKMS' do |ss|
ss.source_files = 'Sources/WalletConnectKMS/**/*'
ss.dependency 'WalletConnectSwiftV2/WalletConnectUtils'
end
spec.subspec 'Commons' do |ss|
ss.source_files = 'Sources/Commons/**/*'
end
spec.subspec 'JSONRPC' do |ss|
ss.source_files = 'Sources/JSONRPC/**/*'
ss.dependency 'WalletConnectSwiftV2/Commons'
end
end