forked from mxcl/PromiseKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPromiseKit.podspec
More file actions
147 lines (125 loc) · 5.24 KB
/
PromiseKit.podspec
File metadata and controls
147 lines (125 loc) · 5.24 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
Pod::Spec.new do |s|
s.name = "PromiseKit"
`xcodebuild -project PromiseKit.xcodeproj -showBuildSettings` =~ /CURRENT_PROJECT_VERSION = ((\d\.)+\d)/
abort("No version detected") if $1.nil?
s.version = $1
s.source = { :git => "https://github.com/mxcl/#{s.name}.git", :tag => s.version }
s.license = { :type => 'MIT', :text => '@see README' }
s.summary = 'A delightful Promises implementation for iOS and OS X.'
s.homepage = 'http://promisekit.org'
s.description = 'UIActionSheet UIAlertView CLLocationManager MFMailComposeViewController ACAccountStore StoreKit SKRequest SKProductRequest blocks'
s.social_media_url = 'https://twitter.com/mxcl'
s.authors = { 'Max Howell' => 'mxcl@me.com' }
s.documentation_url = 'http://promisekit.org/introduction/'
s.default_subspecs = 'Foundation', 'UIKit', 'QuartzCore'
s.requires_arc = true
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
s.watchos.deployment_target = '2.0'
s.module_map = 'Sources/PMK.modulemap'
s.xcconfig = { 'SWIFT_INSTALL_OBJC_HEADER' => 'NO' }
s.subspec 'Accounts' do |ss|
ss.ios.source_files = ss.osx.source_files = 'Categories/Accounts/*'
ss.dependency 'PromiseKit/CorePromise'
ss.frameworks = 'Accounts'
end
s.subspec 'AddressBook' do |ss|
ss.ios.source_files = 'Categories/AddressBook/*'
ss.dependency 'PromiseKit/CorePromise'
ss.ios.frameworks = 'AddressBook'
end
s.subspec 'AssetsLibrary' do |ss|
ss.ios.source_files = 'Categories/AssetsLibrary/*'
ss.dependency 'PromiseKit/UIKit'
ss.ios.frameworks = 'AssetsLibrary'
end
s.subspec 'AVFoundation' do |ss|
ss.ios.source_files = 'Categories/AVFoundation/*'
ss.dependency 'PromiseKit/CorePromise'
ss.ios.frameworks = 'AVFoundation'
end
# FIXME wouldn’t lint
# s.subspec 'Bolts' do |ss|
# ss.ios.source_files = 'Categories/Bolts/*'
# ss.ios.dependency 'Bolts', '~> 1.3.0'
# end
s.subspec 'CloudKit' do |ss|
ss.source_files = 'Categories/CloudKit/*'
ss.dependency 'PromiseKit/CorePromise'
ss.frameworks = 'CloudKit'
ss.ios.deployment_target = '8.0'
ss.osx.deployment_target = '10.10'
end
s.subspec 'CorePromise' do |ss|
hh = Dir['Sources/*.h'] - Dir['Sources/*+Private.h']
ss.source_files = 'Sources/*.{swift}', 'Sources/{after,AnyPromise,dispatch_promise,hang,join,PMKPromise,when}.m', *hh
ss.public_header_files = hh
ss.preserve_paths = 'Sources/AnyPromise+Private.h', 'Sources/PMKCallVariadicBlock.m', 'Sources/NSMethodSignatureForBlock.m'
ss.frameworks = 'Foundation'
end
s.subspec 'CoreLocation' do |ss|
ss.ios.source_files = 'Categories/CoreLocation/*'
ss.osx.source_files = 'Categories/CoreLocation/*'
ss.watchos.source_files = Dir['*/CLGeocoder*']
ss.dependency 'PromiseKit/CorePromise'
ss.frameworks = 'CoreLocation'
end
s.subspec 'Foundation' do |ss|
ss.ios.source_files = Dir['Categories/Foundation/*'] - Dir['Categories/Foundation/NSTask*']
ss.osx.source_files = 'Categories/Foundation/*'
ss.watchos.source_files = Dir['Categories/Foundation/*'] - Dir['Categories/Foundation/NSTask*', 'Categories/Foundation/NSURL*']
ss.dependency 'PromiseKit/CorePromise'
ss.dependency 'OMGHTTPURLRQ', '~> 3.0.0'
ss.frameworks = 'Foundation'
end
s.subspec 'DietFoundation' do |ss|
ss.ios.source_files = Dir['Categories/Foundation/*'] - Dir['Categories/Foundation/NSTask*', 'Categories/Foundation/NSURL*']
ss.osx.source_files = Dir['Categories/Foundation/*'] - Dir['Categories/Foundation/NSURL*']
ss.watchos.source_files = Dir['Categories/Foundation/*'] - Dir['Categories/Foundation/NSTask*', 'Categories/Foundation/NSURL*']
ss.dependency 'PromiseKit/CorePromise'
ss.frameworks = 'Foundation'
end
s.subspec 'MapKit' do |ss|
ss.ios.source_files = 'Categories/MapKit/*'
ss.osx.source_files = 'Categories/MapKit/*'
ss.dependency 'PromiseKit/CorePromise'
ss.frameworks = 'MapKit'
end
s.subspec 'MessageUI' do |ss|
ss.ios.source_files = 'Categories/MessageUI/*'
ss.dependency 'PromiseKit/CorePromise'
ss.ios.frameworks = 'MessageUI'
end
s.subspec 'Photos' do |ss|
ss.ios.source_files = 'Categories/Photos/*'
ss.dependency 'PromiseKit/CorePromise'
ss.ios.frameworks = 'Photos'
end
s.subspec 'QuartzCore' do |ss|
ss.ios.source_files = 'Categories/QuartzCore/*'
ss.osx.source_files = 'Categories/QuartzCore/*'
ss.dependency 'PromiseKit/CorePromise'
ss.frameworks = 'QuartzCore'
end
s.subspec 'Social' do |ss|
ss.ios.source_files = 'Categories/Social/*'
ss.osx.source_files = Dir['Categories/Social/*'] - ['Categories/Social/SLComposeViewController+Promise.swift']
ss.dependency 'PromiseKit/CorePromise'
ss.frameworks = 'Social'
end
s.subspec 'StoreKit' do |ss|
ss.ios.source_files = ss.osx.source_files = 'Categories/StoreKit/*'
ss.dependency 'PromiseKit/CorePromise'
ss.frameworks = 'StoreKit'
end
s.subspec 'SystemConfiguration' do |ss|
ss.ios.source_files = ss.osx.source_files = 'Categories/SystemConfiguration/*'
ss.dependency 'PromiseKit/CorePromise'
ss.frameworks = 'SystemConfiguration'
end
s.subspec 'UIKit' do |ss|
ss.ios.source_files = 'Categories/UIKit/*'
ss.dependency 'PromiseKit/CorePromise'
ss.ios.frameworks = 'UIKit'
end
end