Created
June 7, 2013 12:32
-
-
Save hlfcoding/5728912 to your computer and use it in GitHub Desktop.
For compatibility with older AFNetworking.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = 'RestKit' | |
s.version = '0.20.2' | |
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.author = { 'Blake Watters' => 'blakewatters@gmail.com' } | |
s.source = { :git => 'https://github.com/RestKit/RestKit.git', :tag => 'v0.20.2' } | |
s.license = 'Apache License, Version 2.0' | |
# Platform setup | |
s.requires_arc = true | |
s.ios.deployment_target = '5.0' | |
s.osx.deployment_target = '10.7' | |
# Exclude optional Search and Testing modules | |
s.default_subspec = 'Core' | |
# Add Core Data to the PCH (This should be part of the Core Data Subspec, but CocoaPods does not allow) | |
s.prefix_header_contents = <<-EOS | |
#ifdef __OBJC__ | |
#import <CoreData/CoreData.h> | |
#endif /* __OBJC__*/ | |
EOS | |
### Subspecs | |
s.subspec 'Core' do |cs| | |
cs.source_files = 'Code/*.h', 'Vendor/LibComponentLogging/Core', 'Vendor/LibComponentLogging/NSLog' | |
cs.header_dir = 'RestKit' | |
cs.dependency 'RestKit/ObjectMapping' | |
cs.dependency 'RestKit/Network' | |
cs.dependency 'RestKit/CoreData' | |
end | |
s.subspec 'ObjectMapping' do |os| | |
os.header_dir = 'RestKit/ObjectMapping' | |
os.source_files = 'Code/ObjectMapping' | |
end | |
s.subspec 'Network' do |ns| | |
ns.header_dir = 'RestKit/Network' | |
ns.source_files = 'Code/Network' | |
ns.ios.frameworks = 'CFNetwork', 'Security', 'MobileCoreServices', 'SystemConfiguration' | |
ns.osx.frameworks = 'CoreServices', 'Security', 'SystemConfiguration' | |
ns.dependency 'SOCKit' | |
ns.dependency 'AFNetworking', '>= 1.0' | |
ns.dependency 'RestKit/ObjectMapping' | |
ns.dependency 'RestKit/Support' | |
end | |
s.subspec 'CoreData' do |cdos| | |
cdos.header_dir = 'RestKit/CoreData' | |
cdos.source_files = 'Code/CoreData' | |
cdos.frameworks = 'CoreData' | |
end | |
s.subspec 'Testing' do |ts| | |
ts.header_dir = 'RestKit/Testing' | |
ts.source_files = 'Code/Testing' | |
end | |
s.subspec 'Search' do |ss| | |
ss.header_dir = 'RestKit/Search' | |
ss.source_files = 'Code/Search' | |
ss.dependency 'RestKit/CoreData' | |
end | |
s.subspec 'Support' do |ss| | |
ss.header_dir = 'RestKit/Support' | |
ss.source_files = 'Code/Support' | |
ss.dependency 'TransitionKit', '1.1.1' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment