1
+ Pod ::Spec . new do |s |
2
+ s . name = 'RestKit'
3
+ s . version = '0.10.3'
4
+ s . summary = 'RestKit is a framework for consuming and modeling RESTful web resources on iOS and OS X.'
5
+ s . homepage = 'http://www.restkit.org'
6
+ s . author = { 'Blake Watters' => 'blakewatters@gmail.com' }
7
+ s . source = { :git => 'https://github.com/timehop/RestKit.git' , :head }
8
+ s . license = 'Apache License, Version 2.0'
9
+
10
+ s . source_files = 'Code/RestKit.h'
11
+
12
+ ### Preferred dependencies
13
+
14
+ s . preferred_dependency = 'JSON'
15
+
16
+ s . subspec 'JSON' do |js |
17
+ js . dependency 'RestKit/Network'
18
+ js . dependency 'RestKit/ObjectMapping/JSON'
19
+ js . dependency 'RestKit/ObjectMapping/CoreData'
20
+ js . dependency 'RestKit/ObjectMapping'
21
+ js . dependency 'RestKit/UI'
22
+ end
23
+
24
+ s . subspec 'XML' do |xs |
25
+ xs . dependency 'RestKit/Network'
26
+ xs . dependency 'RestKit/ObjectMapping/XML'
27
+ xs . dependency 'RestKit/ObjectMapping/CoreData'
28
+ xs . dependency 'RestKit/UI'
29
+ end
30
+
31
+ ### Subspecs
32
+
33
+ s . subspec 'Network' do |ns |
34
+ ns . source_files = 'Code/Network' , 'Code/Support'
35
+ ns . ios . frameworks = 'CFNetwork' , 'Security' , 'MobileCoreServices' , 'SystemConfiguration'
36
+ ns . osx . frameworks = 'CoreServices' , 'Security' , 'SystemConfiguration'
37
+ ns . dependency 'LibComponentLogging-NSLog' , '>= 1.0.4'
38
+ ns . dependency 'cocoa-oauth'
39
+ ns . dependency 'FileMD5Hash'
40
+ ns . dependency 'SOCKit'
41
+ end
42
+
43
+ s . subspec 'UI' do |us |
44
+ us . ios . source_files = 'Code/UI'
45
+ us . ios . framework = 'QuartzCore'
46
+ #us.ios.dependency 'UDTableView'
47
+
48
+ us . osx . source_files = 'Code/UI/UIImage+RKAdditions.{h,m}'
49
+ end
50
+
51
+ s . subspec 'ObjectMapping' do |os |
52
+ os . dependency 'ISO8601DateFormatter' , '>= 0.6'
53
+ os . dependency 'RestKit/Network'
54
+
55
+
56
+ os . subspec 'Core' do |cos |
57
+ cos . source_files = 'Code/ObjectMapping/'
58
+ end
59
+
60
+ os . subspec 'JSON' do |jos |
61
+ jos . source_files = 'Code/Support/Parsers/JSON/RKJSONParserJSONKit.{h,m}'
62
+ jos . dependency 'JSONKit' , '>= 1.5pre'
63
+ jos . dependency 'RestKit/ObjectMapping/Core'
64
+ end
65
+
66
+ os . subspec 'XML' do |xos |
67
+ xos . source_files = 'Code/Support/Parsers/XML/RKXMLParserXMLReader.{h,m}'
68
+ xos . libraries = 'xml2'
69
+ xos . dependency 'XMLReader'
70
+ xos . dependency 'RestKit/ObjectMapping/Core'
71
+ end
72
+
73
+ os . subspec 'CoreData' do |cdos |
74
+ cdos . source_files = 'Code/CoreData'
75
+ cdos . frameworks = 'CoreData'
76
+ cdos . dependency 'RestKit/ObjectMapping/Core'
77
+ end
78
+ end
79
+
80
+ s . subspec 'Testing' do |ts |
81
+ ts . source_files = 'Code/Testing'
82
+ end
83
+ end
0 commit comments