This repository was archived by the owner on Mar 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCancelForPromiseKit.podspec
More file actions
158 lines (142 loc) · 5.81 KB
/
CancelForPromiseKit.podspec
File metadata and controls
158 lines (142 loc) · 5.81 KB
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
Pod::Spec.new do |s|
s.name = "CancelForPromiseKit"
`xcodebuild -project CancelForPromiseKit.xcodeproj -showBuildSettings` =~ /CURRENT_PROJECT_VERSION = ((\d\.)+\d)/
abort("No version detected") if $1.nil?
s.version = $1
s.source = {
:git => "https://github.com/dougzilla32/#{s.name}.git",
:tag => s.version,
:submodules => true
}
s.license = 'MIT'
s.summary = 'Cancellable Promises for Swift.'
s.homepage = 'https://github.com/dougzilla32/CancelForPromiseKit.git'
s.description = 'Provides clear, concise and complete cancellation abilities for PromiseKit and the PromiseKit Extensions.'
# s.social_media_url = ''
s.authors = { 'Doug Stein' => 'dougstein@gmail.com' }
s.documentation_url = 'https://dougzilla32.github.io/CancelForPromiseKit/api/'
s.default_subspecs = 'CorePromise', 'Foundation'
s.requires_arc = true
s.swift_version = '4.0'
# CocoaPods requires us to specify the root deployment targets
# even though for us it is nonsense. Our root spec has no
# sources.
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.11'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '9.0'
s.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => '-DCPKCocoaPods',
}
s.subspec 'Alamofire' do |ss|
ss.source_files = 'Extensions/Alamofire/Sources/*'
ss.dependency 'Alamofire', '~> 4.0'
ss.dependency 'PromiseKit/Alamofire', '~> 6.0'
ss.dependency 'CancelForPromiseKit/CorePromise'
ss.ios.deployment_target = '8.0'
ss.osx.deployment_target = '10.11'
ss.watchos.deployment_target = '2.0'
ss.tvos.deployment_target = '9.0'
ss.test_spec do |test_spec|
test_spec.source_files = Dir['Extensions/Alamofire/Tests/*']
test_spec.dependency 'OHHTTPStubs/Swift'
end
end
# s.subspec 'Bolts' do |ss|
# ss.source_files = 'Extensions/Bolts/Sources/*'
# ss.dependency 'CancelForPromiseKit/CorePromise'
# ss.dependency 'Bolts', '~> 1.9.0'
# ss.ios.deployment_target = '8.0'
# ss.osx.deployment_target = '10.11'
# ss.watchos.deployment_target = '2.0'
# ss.tvos.deployment_target = '9.0'
# end
#
# s.subspec 'CloudKit' do |ss|
# ss.source_files = 'Extensions/CloudKit/Sources/*'
# ss.frameworks = 'CloudKit'
# ss.dependency 'CancelForPromiseKit/CorePromise'
# ss.ios.deployment_target = '8.0'
# ss.osx.deployment_target = '10.10'
# ss.tvos.deployment_target = '9.0'
# ss.watchos.deployment_target = '3.0'
# end
s.subspec 'CorePromise' do |ss|
hh = Dir['Sources/*.h'] # - Dir['Sources/*+Private.h']
cc = Dir['Sources/*.swift'] # - ['Sources/SwiftPM.swift']
cc << 'Sources/{after,CancellableAnyPromise}.m'
cc += hh
ss.source_files = cc
ss.public_header_files = hh
# ss.preserve_paths = 'Sources/AnyPromise+Private.h', 'Sources/PMKCallVariadicBlock.m', 'Sources/NSMethodSignatureForBlock.m'
ss.dependency 'PromiseKit/CorePromise', '~> 6.3.4'
ss.frameworks = 'Foundation'
ss.ios.deployment_target = '8.0'
ss.osx.deployment_target = '10.11'
ss.watchos.deployment_target = '2.0'
ss.tvos.deployment_target = '9.0'
end
s.subspec 'CoreLocation' do |ss|
ss.source_files = 'Extensions/CoreLocation/Sources/*'
ss.watchos.source_files = 'Extensions/CoreLocation/Sources/CLGeocoder*'
ss.dependency 'PromiseKit/CoreLocation', '~> 6.0'
ss.dependency 'CancelForPromiseKit/CorePromise'
ss.frameworks = 'CoreLocation'
ss.ios.deployment_target = '8.0'
ss.osx.deployment_target = '10.11'
ss.watchos.deployment_target = '3.0'
ss.tvos.deployment_target = '9.0'
end
s.subspec 'Foundation' do |ss|
ss.source_files = Dir['Extensions/Foundation/Sources/*']
ss.dependency 'PromiseKit/Foundation', '~> 6.0'
ss.dependency 'CancelForPromiseKit/CorePromise'
ss.frameworks = 'Foundation'
ss.ios.deployment_target = '8.0'
ss.osx.deployment_target = '10.11'
ss.watchos.deployment_target = '2.0'
ss.tvos.deployment_target = '9.0'
ss.test_spec do |test_spec|
test_spec.source_files = Dir['Extensions/Foundation/Tests/*']
test_spec.dependency 'OHHTTPStubs/Swift'
end
end
# s.subspec 'MapKit' do |ss|
# ss.ios.source_files = ss.osx.source_files = ss.tvos.source_files = 'Extensions/MapKit/Sources/*'
# ss.ios.frameworks = ss.osx.frameworks = ss.tvos.frameworks = 'MapKit'
# ss.dependency 'CancelForPromiseKit/CorePromise'
# ss.ios.deployment_target = '8.0'
# ss.osx.deployment_target = '10.11'
# ss.watchos.deployment_target = '2.0'
# ss.tvos.deployment_target = '9.2'
# end
#
# s.subspec 'OMGHTTPURLRQ' do |ss|
# ss.source_files = 'Extensions/OMGHTTPURLRQ/Sources/*'
# ss.dependency 'CancelForPromiseKit/Foundation'
# ss.dependency 'OMGHTTPURLRQ', '~> 3.2'
# ss.ios.deployment_target = '8.0'
# ss.osx.deployment_target = '10.11'
# ss.watchos.deployment_target = '2.0'
# ss.tvos.deployment_target = '9.0'
# end
#
# https://developer.apple.com/documentation/storekit/skrequest/1385526-cancel
# s.subspec 'StoreKit' do |ss|
# ss.ios.source_files = ss.osx.source_files = ss.tvos.source_files = 'Extensions/StoreKit/Sources/*'
# ss.ios.frameworks = ss.osx.frameworks = ss.tvos.frameworks = 'StoreKit'
# ss.dependency 'CancelForPromiseKit/CorePromise'
# ss.ios.deployment_target = '8.0'
# ss.osx.deployment_target = '10.11'
# ss.tvos.deployment_target = '9.0'
# end
#
# https://stackoverflow.com/questions/39194716/wcsession-is-it-possible-to-cancel-queued-message?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
# s.subspec 'WatchConnectivity' do |ss|
# ss.ios.source_files = ss.watchos.source_files = 'Extensions/WatchConnectivity/Sources/*'
# ss.ios.frameworks = ss.watchos.frameworks = 'WatchConnectivity'
# ss.dependency 'CancelForPromiseKit/CorePromise'
# ss.ios.deployment_target = '8.0'
# ss.watchos.deployment_target = '2.0'
# end
end