Skip to content

Instantly share code, notes, and snippets.

@sbl
Created February 27, 2013 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbl/5046783 to your computer and use it in GitHub Desktop.
Save sbl/5046783 to your computer and use it in GitHub Desktop.
Prelim podspec for the huesforalice/restkit fork
Pod::Spec.new do |s|
s.name = 'RestKit'
s.version = '0.10.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/huesforalice/RestKit.git', :commit => 'cc3eec28ffaa7ff55c2c431b0933de69b9b36bb7' }
s.license = 'Apache License, Version 2.0'
s.source_files = 'Code/RestKit.h'
### 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/UI'
end
s.subspec 'XML' do |xs|
xs.dependency 'RestKit/Network'
xs.dependency 'RestKit/ObjectMapping/XML'
xs.dependency 'RestKit/ObjectMapping/CoreData'
xs.dependency 'RestKit/UI'
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 'cocoa-oauth'
ns.dependency 'FileMD5Hash'
ns.dependency 'SOCKit'
end
s.subspec 'UI' do |us|
us.ios.source_files = 'Code/UI'
us.ios.framework = 'QuartzCore'
#us.ios.dependency 'UDTableView'
us.osx.source_files = 'Code/UI/UIImage+RKAdditions.{h,m}'
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
s.subspec 'Testing' do |ts|
ts.source_files = 'Code/Testing'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment