forked from RestKit/RestKit
- Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathRestKit.podspec
More file actions
Latest commit
106 lines (89 loc) · 3.42 KB
/
Copy pathRestKit.podspec
File metadata and controls
106 lines (89 loc) · 3.42 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
Pod::Spec.newdo |s|
s.name='RestKit'
s.version='0.24.1'
s.summary='RestKit is a framework for consuming and modeling RESTful web resources on iOS and OS X.'
s.homepage='http://www.restkit.org'
s.social_media_url='https://twitter.com/RestKit'
s.author={'Blake Watters'=>'blakewatters@gmail.com'}
s.source={:git=>'https://github.com/RestKit/RestKit.git',:tag=>"v#{s.version}"}
s.license='Apache License, Version 2.0'
# Platform setup
s.requires_arc=true
s.ios.deployment_target='6.0'
s.osx.deployment_target='10.8'
# Exclude optional Search and Testing modules
s.default_subspec='Core'
# Add Core Data to the PCH if the Core Data subspec is imported. This enables conditional compilation to kick in.
s.prefix_header_contents=<<-EOS
#if __has_include("RKCoreData.h")
#import <CoreData/CoreData.h>
#endif
EOS
# Preserve the layout of headers in the Code directory
s.header_mappings_dir='Code'
### Subspecs
s.subspec'Core'do |cs|
cs.dependency'RestKit/ObjectMapping'
cs.dependency'RestKit/Network'
cs.dependency'RestKit/CoreData'
end
s.subspec'ObjectMapping'do |os|
os.source_files='Code/ObjectMapping.h','Code/ObjectMapping'
os.dependency'RestKit/Support'
os.dependency'RKValueTransformers','~> 1.1.0'
os.dependency'ISO8601DateFormatterValueTransformer','~> 0.6.0'
end
s.subspec'Network'do |ns|
ns.source_files='Code/Network.h','Code/Network'
ns.ios.frameworks='CFNetwork','Security','MobileCoreServices','SystemConfiguration'
ns.osx.frameworks='CoreServices','Security','SystemConfiguration'
ns.dependency'SOCKit'
ns.dependency'AFNetworking/Serialization','2.4.0'
# ns.dependency 'AFNetworking/Reachability', '2.4.0'
ns.dependency'RestKit/ObjectMapping'
ns.dependency'RestKit/Support'
ns.prefix_header_contents=<<-EOS
#import <Availability.h>
#define _AFNETWORKING_PIN_SSL_CERTIFICATES_
#if __IPHONE_OS_VERSION_MIN_REQUIRED
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>
#import <Security/Security.h>
#else
#import <SystemConfiguration/SystemConfiguration.h>
#import <CoreServices/CoreServices.h>
#import <Security/Security.h>
#endif
EOS
end
s.subspec'CoreData'do |cdos|
cdos.source_files='Code/CoreData.h','Code/CoreData'
cdos.frameworks='CoreData'
cdos.dependency'RestKit/ObjectMapping'
end
s.subspec'Testing'do |ts|
ts.source_files='Code/Testing.h','Code/Testing'
ts.dependency'RestKit/Network'
ts.prefix_header_contents=<<-EOS
#import <Availability.h>
#define _AFNETWORKING_PIN_SSL_CERTIFICATES_
#if __IPHONE_OS_VERSION_MIN_REQUIRED
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>
#import <Security/Security.h>
#else
#import <SystemConfiguration/SystemConfiguration.h>
#import <CoreServices/CoreServices.h>
#import <Security/Security.h>
#endif
EOS
end
s.subspec'Search'do |ss|
ss.source_files='Code/Search.h','Code/Search'
ss.dependency'RestKit/CoreData'
end
s.subspec'Support'do |ss|
ss.source_files='Code/RestKit.h','Code/Support.h','Code/Support','Vendor/LibComponentLogging/Core'
ss.dependency'TransitionKit','~> 2.1.0'
end
end