-
Notifications
You must be signed in to change notification settings - Fork 2
/
TokenDSDK.podspec
105 lines (80 loc) · 3.53 KB
/
TokenDSDK.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
Pod::Spec.new do |s|
s.name = 'TokenDSDK'
s.version = '4.0.4'
s.summary = 'TokenD SDK for iOS.'
s.homepage = 'https://github.com/tokend/ios-sdk'
s.license = { type: 'Apache License, Version 2.0', file: 'LICENSE' }
s.author = { 'Distributed Lab' => '[email protected]' }
s.source = { git: 'https://github.com/tokend/ios-sdk.git', tag: s.version.to_s }
s.swift_version = '4.2'
s.exclude_files = 'Example/*'
s.ios.deployment_target = '10.0'
s.ios.dependency 'TokenDWallet', '3.1.1'
v1_source_files = 'Sources/Common/**/*.swift',
'Sources/v1/**/*.swift'
v1_alamofire_files = 'Sources/Alamofire/Common/**/*.swift',
'Sources/Alamofire/v1/**/*.swift'
jsonapi_v3_source_files = 'Sources/Common/**/*.swift',
'Sources/JSONAPI/Common/**/*.swift',
'Sources/JSONAPI/v3/**/*.swift'
jsonapi_muna_v3_source_files = 'Sources/MUNA/v3/**/*.swift'
jsonapi_contopass_v3_source_files = 'Sources/Contopass/v3/**/*.swift'
jsonapi_contofa_v3_source_files = 'Sources/ContoFA/v3/**/*.swift'
jsonapi_dms_v3_source_files = 'Sources/DMS/v3/**/*.swift'
jsonapi_v3_alamofire_files = 'Sources/Alamofire/Common/**/*.swift',
'Sources/Alamofire/JSONAPI/**/*.swift'
rx_jsonapi_v3_source_files = 'Sources/RxSwift/JSONAPI/Common/**/*.swift',
'Sources/RxSwift/JSONAPI/v3/**/*.swift'
key_server_v1_source_files = 'Sources/Common/**/*.swift',
'Sources/KeyServer/**/*.swift'
key_server_muna_v1_source_files = 'Sources/MUNA/KeyServer/**/*.swift'
s.subspec 'API' do |ss|
ss.source_files = v1_source_files
end
s.subspec 'AlamofireNetwork' do |ss|
ss.source_files = v1_alamofire_files
ss.dependency 'Alamofire', '5.3.0'
end
s.subspec 'JSONAPI' do |ss|
ss.source_files = jsonapi_v3_source_files
ss.dependency 'DLJSONAPI', '>= 1.0.9'
ss.xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited)' }
end
s.subspec 'MUNA' do |ss|
ss.xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'TOKENDSDK_MUNAAPI' }
ss.source_files = jsonapi_muna_v3_source_files
ss.dependency 'TokenDSDK/JSONAPI'
end
s.subspec 'Contopass' do |ss|
ss.xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'TOKENDSDK_CONTOPASSAPI' }
ss.source_files = jsonapi_contopass_v3_source_files
ss.dependency 'TokenDSDK/JSONAPI'
end
s.subspec 'ContoFA' do |ss|
ss.xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'TOKENDSDK_CONTOFAAPI' }
ss.source_files = jsonapi_contofa_v3_source_files
ss.dependency 'TokenDSDK/JSONAPI'
end
s.subspec 'DMS' do |ss|
ss.xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'TOKENDSDK_DMSAPI' }
ss.source_files = jsonapi_dms_v3_source_files
ss.dependency 'TokenDSDK/JSONAPI'
end
s.subspec 'AlamofireNetworkJSONAPI' do |ss|
ss.source_files = jsonapi_v3_alamofire_files
ss.dependency 'Alamofire', '5.3.0'
end
s.subspec 'RxJSONAPI' do |ss|
ss.source_files = rx_jsonapi_v3_source_files
ss.dependency 'RxSwift', '~> 6.0.0-rc.1'
ss.dependency 'RxCocoa', '~> 6.0.0-rc.1'
end
s.subspec 'KeyServer' do |ss|
ss.source_files = key_server_v1_source_files
end
s.subspec 'MUNAKeyServer' do |ss|
ss.source_files = key_server_muna_v1_source_files
ss.dependency 'TokenDSDK/KeyServer'
end
s.default_subspecs = 'API', 'JSONAPI', 'KeyServer'
end