forked from hectr/ErrorKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathErrorKit.podspec
160 lines (137 loc) · 5.06 KB
/
ErrorKit.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
148
149
150
151
152
153
154
155
156
157
158
159
160
Pod::Spec.new do |s|
s.name = "ErrorKit"
s.version = "0.1.0"
s.summary = "Error Kit is a handy iOS library for making NSError handling easier."
s.description = <<-DESC
Error Kit is a handy iOS library for making NSError handling easier.
It covers error object creation, inspection, presentation and recovery.
DESC
s.homepage = "https://github.com/hectr/ErrorKit"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = "Héctor Marqués Ranea"
s.source = { :git => "https://github.com/hectr/ErrorKit.git", :tag => s.version.to_s }
s.platform = :ios, '5.0'
s.requires_arc = true
s.prefix_header_contents = '#define ERROR_KIT 1'
default_subspec = 'Default'
s.subspec 'Core' do |co|
co.source_files = 'ErrorKit/Core'
co.resources = 'ErrorKit/Core/ErrorKit.bundle'
co.prefix_header_contents = '#define ERROR_KIT_CORE 1'
end
s.subspec 'Accounts' do |ac|
ac.source_files = 'ErrorKit/Accounts'
ac.dependency 'ErrorKit/Core'
ac.ios.frameworks = 'Accounts'
ac.prefix_header_contents = '#define ERROR_KIT_ACCOUNTS 1'
end
s.subspec 'AdMob' do |ad|
ad.source_files = 'ErrorKit/AdMob'
ad.dependency 'ErrorKit/Core'
ad.dependency 'AdMob', '< 6.6'
ad.prefix_header_contents = '#define ERROR_KIT_ADMOB 1'
end
s.subspec 'AFNetworking' do |af|
af.source_files = 'ErrorKit/AFNetworking'
af.dependency 'ErrorKit/Core'
af.dependency 'AFNetworking', '~> 1.3.3'
af.prefix_header_contents = '#define ERROR_KIT_AFNETWORKING 1'
end
s.subspec 'AVFoundation' do |av|
av.source_files = 'ErrorKit/AVFoundation'
av.dependency 'ErrorKit/Core'
av.ios.frameworks = 'AVFoundation'
av.prefix_header_contents = '#define ERROR_KIT_AVFOUNDATION 1'
end
s.subspec 'CoreData' do |cd|
cd.source_files = 'ErrorKit/CoreData'
cd.dependency 'ErrorKit/Core'
cd.frameworks = 'CoreData'
cd.prefix_header_contents = '#define ERROR_KIT_CORE_DATA 1'
end
s.subspec 'CoreLocation' do |cl|
cl.source_files = 'ErrorKit/CoreLocation'
cl.dependency 'ErrorKit/Core'
cl.frameworks = 'CoreLocation'
cl.prefix_header_contents = '#define ERROR_KIT_CORE_LOCATION 1'
end
s.subspec 'FacebookSDK' do |fb|
fb.source_files = 'ErrorKit/FacebookSDK'
fb.dependency 'ErrorKit/UIKit'
fb.dependency 'Facebook-iOS-SDK', '< 3.9'
fb.prefix_header_contents = '#define ERROR_KIT_FACEBOOK_SDK 1'
end
s.subspec 'HTTP' do |ht|
ht.source_files = 'ErrorKit/HTTP'
ht.dependency 'ErrorKit/Core'
ht.prefix_header_contents = '#define ERROR_KIT_HTTP 1'
end
s.subspec 'JSONValues' do |jv|
jv.source_files = 'ErrorKit/JSONValues'
jv.dependency 'ErrorKit/Core'
jv.prefix_header_contents = '#define ERROR_KIT_JSON_VALUES 1'
end
s.subspec 'JSONKit' do |jk|
jk.source_files = 'ErrorKit/JSONKit'
jk.dependency 'JSONKit', '1.5pre'
jk.prefix_header_contents = '#define ERROR_KIT_JSON_KIT 1'
end
s.subspec 'MapKit' do |mk|
mk.source_files = 'ErrorKit/MapKit'
mk.dependency 'ErrorKit/Core'
mk.ios.frameworks = 'MapKit'
mk.prefix_header_contents = '#define ERROR_KIT_MAP_KIT 1'
end
s.subspec 'MessageUI' do |mu|
mu.source_files = 'ErrorKit/MessageUI'
mu.dependency 'ErrorKit/Core'
mu.ios.frameworks = 'MessageUI'
mu.prefix_header_contents = '#define ERROR_KIT_MESSAGE_UI 1'
end
s.subspec 'NSException' do |ex|
ex.source_files = 'ErrorKit/NSException'
ex.dependency 'ErrorKit/Core'
ex.prefix_header_contents = '#define ERROR_KIT_NSEXCEPTION 1'
end
s.subspec 'Security' do |se|
se.source_files = 'ErrorKit/Security'
se.dependency 'ErrorKit/Core'
se.ios.frameworks = 'Security'
se.prefix_header_contents = '#define ERROR_SECURITY 1'
end
s.subspec 'StoreKit' do |sk|
sk.source_files = 'ErrorKit/StoreKit'
sk.dependency 'ErrorKit/Core'
sk.ios.frameworks = 'StoreKit'
sk.prefix_header_contents = '#define ERROR_KIT_STORE_KIT 1'
end
s.subspec 'TransitionKit' do |tk|
tk.source_files = 'ErrorKit/TransitionKit'
tk.dependency 'ErrorKit/Core'
tk.dependency 'TransitionKit', '< 1.2'
tk.prefix_header_contents = '#define ERROR_KIT_TRANSITION_KIT 1'
end
s.subspec 'iAD' do |ia|
ia.source_files = 'ErrorKit/iAD'
ia.dependency 'ErrorKit/Core'
ia.ios.frameworks = 'iAD'
ia.prefix_header_contents = '#define ERROR_KIT_IAD 1'
end
s.subspec 'UIKit' do |ui|
ui.source_files = 'ErrorKit/UIKit'
ui.dependency 'ErrorKit/Core'
ui.ios.frameworks = 'UIKit'
ui.prefix_header_contents = '#define ERROR_KIT_UI_KIT 1'
end
s.subspec 'VeriJSON' do |vj|
vj.source_files = 'ErrorKit/VeriJSON'
vj.dependency 'ErrorKit/Core'
vj.dependency 'VeriJSON', '< 0.2'
vj.prefix_header_contents = '#define ERROR_KIT_VERI_JSON 1'
end
s.subspec 'Default' do |df|
df.source_files = 'ErrorKit/Default'
df.dependencies = 'ErrorKit/Core', 'ErrorKit/HTTP', 'ErrorKit/JSONValues', 'ErrorKit/NSException', 'ErrorKit/UIKit'
df.prefix_header_contents = '#define ERROR_KIT_DEFAULT 1'
end
end