From 5b526e03c813280f2b2d3be59c3df3f0cb76488a Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Tue, 28 Aug 2012 20:54:27 -0400 Subject: [PATCH] Adding podspec to the repository --- RestKit.podspec | 79 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 RestKit.podspec diff --git a/RestKit.podspec b/RestKit.podspec new file mode 100644 index 00000000..a8ec224b --- /dev/null +++ b/RestKit.podspec @@ -0,0 +1,79 @@ +Pod::Spec.new do |s| + s.name = 'RestKit' + s.version = '0.20.0' + 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', :branch => 'feature/reboot-networking-layer' } + s.license = 'Apache License, Version 2.0' + + s.source_files = 'Code/RestKit.h' + + # Platform setup + s.requires_arc = true + s.ios.deployment_target = '5.0' + s.osx.deployment_target = '10.7' + + ### Preferred dependencies + + s.preferred_dependency = 'JSON' + + s.subspec 'JSON' do |js| + js.dependency 'RestKit/Network' + js.dependency 'RestKit/ObjectMapping/JSON' + js.dependency 'RestKit/ObjectMapping/CoreData' + js.dependency 'RestKit/Search' + js.dependency 'RestKit/Testing' + end + + s.subspec 'XML' do |xs| + xs.dependency 'RestKit/Network' + xs.dependency 'RestKit/ObjectMapping/XML' + xs.dependency 'RestKit/ObjectMapping/CoreData' + xs.dependency 'RestKit/Search' + xs.dependency 'RestKit/Testing' + end + + ### Subspecs + + s.subspec 'Network' do |ns| + ns.source_files = 'Code/Network', 'Code/Support' + ns.ios.frameworks = 'CFNetwork', 'Security', 'MobileCoreServices', 'SystemConfiguration' + ns.osx.frameworks = 'CoreServices', 'Security', 'SystemConfiguration' + ns.dependency 'LibComponentLogging-NSLog', '>= 1.0.4' + ns.dependency 'SOCKit' + ns.dependency 'AFNetworking', '1.0RC1' + end + + s.subspec 'Search' do |ss| + ss.source_files = 'Code/Search' + ss.ios.frameworks = 'CoreData' + ss.osx.frameworks = 'CoreData' + end + + s.subspec 'Testing' do |ts| + ts.source_files = 'Code/Testing' + end + + s.subspec 'ObjectMapping' do |os| + os.source_files = 'Code/ObjectMapping' + os.dependency 'ISO8601DateFormatter', '>= 0.6' + os.dependency 'RestKit/Network' + + os.subspec 'JSON' do |jos| + jos.source_files = 'Code/Support/Parsers/JSON/RKJSONParserJSONKit.{h,m}' + jos.dependency 'JSONKit', '>= 1.5pre' + end + + os.subspec 'XML' do |xos| + xos.source_files = 'Code/Support/Parsers/XML/RKXMLParserXMLReader.{h,m}' + xos.libraries = 'xml2' + xos.dependency 'XMLReader' + end + + os.subspec 'CoreData' do |cdos| + cdos.source_files = 'Code/CoreData' + cdos.frameworks = 'CoreData' + end + end +end