@@ -6,7 +6,7 @@ Pod::Spec.new do |s|
6
6
s . version = $1
7
7
8
8
s . source = { :git => "https://github.com/mxcl/#{ s . name } .git" , :tag => s . version }
9
- s . license = 'MIT'
9
+ s . license = { :type => 'MIT' , :text => '@see README' }
10
10
s . summary = 'A delightful Promises implementation for iOS and OS X.'
11
11
s . homepage = 'http://promisekit.org'
12
12
s . description = 'UIActionSheet UIAlertView CLLocationManager MFMailComposeViewController ACAccountStore StoreKit SKRequest SKProductRequest blocks'
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
s . requires_arc = true
18
18
s . ios . deployment_target = '8.0'
19
19
s . osx . deployment_target = '10.9'
20
- s . module_map = 'Sources/module.map '
20
+ s . module_map = 'Sources/PMK.modulemap '
21
21
s . xcconfig = { 'SWIFT_INSTALL_OBJC_HEADER' => 'NO' }
22
22
23
23
s . subspec 'Accounts' do |ss |
@@ -57,7 +57,7 @@ Pod::Spec.new do |s|
57
57
58
58
ss . source_files = 'Sources/*.{swift}' , 'Sources/{after,AnyPromise,dispatch_promise,hang,join,PMKPromise,when}.m' , *hh
59
59
ss . public_header_files = hh
60
- ss . private_header_files = 'Sources/__AnyPromise .h'
60
+ ss . private_header_files = 'Sources/AnyPromise+Private .h'
61
61
ss . frameworks = 'Foundation'
62
62
end
63
63
@@ -100,7 +100,8 @@ Pod::Spec.new do |s|
100
100
end
101
101
102
102
s . subspec 'Social' do |ss |
103
- ss . source_files = 'Categories/Social/*'
103
+ ss . ios . source_files = 'Categories/Social/*'
104
+ ss . osx . source_files = Dir [ 'Categories/Social/*' ] - [ 'Categories/Social/SLComposeViewController+Promise.swift' ]
104
105
ss . dependency 'PromiseKit/CorePromise'
105
106
ss . frameworks = 'Social'
106
107
end
@@ -127,13 +128,13 @@ Pod::Spec.new do |s|
127
128
####################################################### deprecated
128
129
%w{ base Promise Pause Until When Join Hang Zalgo } . each do |name |
129
130
s . subspec name do |ss |
130
- ss . deprecated = true
131
+ # ss.deprecated = true
131
132
ss . dependency 'PromiseKit/CorePromise'
132
133
end
133
134
end
134
135
135
136
s . subspec 'all' do |ss |
136
- ss . deprecated = true
137
+ # ss.deprecated = true
137
138
ss . dependency 'PromiseKit/Accounts'
138
139
ss . dependency 'PromiseKit/AVFoundation'
139
140
ss . dependency 'PromiseKit/CloudKit'
@@ -162,33 +163,33 @@ Pod::Spec.new do |s|
162
163
end
163
164
s . subspec name do |ss |
164
165
ss . dependency "PromiseKit/#{ framework } "
165
- ss . deprecated = true
166
+ # ss.deprecated = true
166
167
end
167
168
end
168
169
169
170
s . subspec 'Swift' do |ss |
170
- ss . deprecated = true
171
+ # ss.deprecated = true
171
172
ss . default_subspecs = 'Foundation' , 'UIKit'
172
173
173
174
ss . subspec 'Promise' do |sss |
174
- sss . deprecated = true
175
+ # sss.deprecated = true
175
176
sss . dependency 'PromiseKit/CorePromise'
176
177
end
177
178
178
179
ss . subspec 'NSJSONFromData' do |sss |
179
- sss . deprecated = true
180
+ # sss.deprecated = true
180
181
sss . dependency 'PromiseKit/CorePromise'
181
182
end
182
183
183
184
%w{ CloudKit UIKit CoreLocation MapKit Social StoreKit Foundation NSNotificationCenter Accounts AVFoundation } . each do |name |
184
185
ss . subspec ( name ) do |sss |
185
- sss . deprecated = true
186
+ # sss.deprecated = true
186
187
sss . dependency "PromiseKit/#{ name } "
187
188
end
188
189
end
189
190
190
191
ss . subspec 'all' do |sss |
191
- sss . deprecated = true
192
+ # sss.deprecated = true
192
193
sss . dependency 'PromiseKit/Swift/CloudKit'
193
194
sss . dependency 'PromiseKit/Swift/CoreLocation'
194
195
sss . dependency 'PromiseKit/Swift/Foundation'
0 commit comments