Permalink
Browse files

[Fix] RestKit.

  • Loading branch information...
1 parent f14b3db commit f52e159a37628ca52b76b5b4865794b5f131cc9f @fabiopelosin fabiopelosin committed May 29, 2012
Showing with 32 additions and 40 deletions.
  1. +32 −40 RestKit/0.10.0/RestKit.podspec
View
72 RestKit/0.10.0/RestKit.podspec
@@ -1,14 +1,15 @@
Pod::Spec.new do |s|
- s.name = 'RestKit'
- s.version = '0.10.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', :tag => 'v0.10.0' }
- s.license = 'Apache License, Version 2.0'
+ s.name = 'RestKit'
+ s.version = '0.10.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', :tag => 'v0.10.0' }
+ s.license = 'Apache License, Version 2.0'
- # The headers need to maintain the directory structure, but only from 'Code' on down.
- s.header_mappings_dir = 'Code'
+ s.source_files = 'Code/RestKit.h'
+
+ ### Preferred dependencies
s.preferred_dependency = 'JSON'
@@ -26,58 +27,49 @@ Pod::Spec.new do |s|
xs.dependency 'RestKit/UI'
end
- # Full name: RestKit/Network
- s.subspec 'Network' do |ns|
- ns.dependency 'LibComponentLogging-NSLog', '>= 1.0.4'
- ns.dependency 'cocoa-oauth'
- ns.dependency 'FileMD5Hash'
- ns.dependency 'SOCKit'
- ns.source_files = 'Code/RestKit.h', 'Code/{Network,Support}/*.{h,m}'
-
- # Normally CocoaPods adds the header dir to the search paths too, but in the
- # case of RestKit we don't want that. Because it's not needed, but especially
- # because it would break: #import <CoreData/CoreData.h>
- ns.exclude_header_search_paths = 'Code/RestKit.h'
+ ### 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
- # Full name: RestKit/UI
s.subspec 'UI' do |us|
- us.ios.source_files = 'Code/UI/*.{h,m}'
- us.ios.framework = 'QuartzCore'
- us.ios.dependency 'UDTableView'
+ 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
- # Full name: RestKit/ObjectMapping
s.subspec 'ObjectMapping' do |os|
- os.dependency 'ISO8601DateFormatter', '>= 0.6'
- os.dependency 'RestKit/Network'
- os.source_files = 'Code/ObjectMapping/*.{h,m}'
+ os.source_files = 'Code/ObjectMapping'
+ os.dependency 'ISO8601DateFormatter', '>= 0.6'
+ os.dependency 'RestKit/Network'
- # Full name: RestKit/ObjectMapping/JSON
os.subspec 'JSON' do |jos|
jos.source_files = 'Code/Support/Parsers/JSON/RKJSONParserJSONKit.{h,m}'
- jos.dependency 'JSONKit', '>= 1.5pre'
+ jos.dependency 'JSONKit', '>= 1.5pre'
end
- # Full name: RestKit/ObjectMapping/XML
os.subspec 'XML' do |xos|
xos.source_files = 'Code/Support/Parsers/XML/RKXMLParserXMLReader.{h,m}'
- xos.dependency 'XMLReader'
+ xos.libraries = 'xml2'
+ xos.dependency 'XMLReader'
end
- # Full name: RestKit/ObjectMapping/CoreData
os.subspec 'CoreData' do |cdos|
- cdos.source_files = 'Code/CoreData/*.{h,m}'
- cdos.frameworks = 'CoreData'
+ cdos.source_files = 'Code/CoreData'
+ cdos.frameworks = 'CoreData'
end
+ end
- # Full name: RestKit/Testing
- s.subspec 'Testing' do |ts|
- ts.source_files = 'Code/Testing/*.{h,m}'
- end
+ s.subspec 'Testing' do |ts|
+ ts.source_files = 'Code/Testing'
end
end

0 comments on commit f52e159

Please sign in to comment.