Browse files

Remove the use of `config.ios?` or `config.osx?`.

  • Loading branch information...
1 parent 882ff1f commit a313ec636029715c6a181ce9dd2b0c13ffbf4b81 @alloy alloy committed Mar 29, 2012
View
21 AFNetworking/0.5.1/AFNetworking.podspec
@@ -6,17 +6,16 @@ Pod::Spec.new do |s|
s.author = { 'Gowalla' => 'live@gowalla.com' }
s.source = { :git => 'https://github.com/gowalla/AFNetworking.git', :tag => '0.5.1' }
- if config.ios?
- s.source_files = 'AFNetworking' # everything
- else
- s.source_files = %w{
- AFNetworking/AFHTTPRequestOperation.h
- AFNetworking/AFJSONRequestOperation.h
- AFNetworking/NSData+AFNetworking.h
- AFNetworking/NSMutableURLRequest+AFNetworking.h
- AFNetworking/NSString+AFNetworking.h
- }
- end
+ # Everything on iOS
+ s.ios.source_files = 'AFNetworking'
+
+ s.osx.source_files = %w{
+ AFNetworking/AFHTTPRequestOperation.h
+ AFNetworking/AFJSONRequestOperation.h
+ AFNetworking/NSData+AFNetworking.h
+ AFNetworking/NSMutableURLRequest+AFNetworking.h
+ AFNetworking/NSString+AFNetworking.h
+ }
s.library = 'z'
s.dependency 'JSONKit'
View
14 ASIHTTPRequest/1.8.1/ASIHTTPRequest.podspec
@@ -20,14 +20,12 @@ Pod::Spec.new do |s|
s.clean_paths = '*Sample', 'External', '*.xcodeproj', 'Build Scripts'
- if config.ios?
- s.dependency 'Reachability' #, '~> 2.0', '>= 2.0.4'
- s.source_files = 'Classes'
- s.frameworks = 'MobileCoreServices', 'CFNetwork', 'CoreGraphics'
- else
- s.source_files = FileList['Classes/*.*'].exclude(/ASIAuthenticationDialog\.\w$/)
- s.frameworks = 'SystemConfiguration', 'CoreServices'
- end
+ s.ios.dependency 'Reachability' #, '~> 2.0', '>= 2.0.4'
+ s.ios.source_files = 'Classes'
+ s.ios.frameworks = 'MobileCoreServices', 'CFNetwork', 'CoreGraphics'
+
+ s.osx.source_files = FileList['Classes/*.*'].exclude(/ASIAuthenticationDialog\.\w$/)
+ s.osx.frameworks = 'SystemConfiguration', 'CoreServices'
s.library = 'z.1'
end
View
5 BlocksKit/1.0.0/BlocksKit.podspec
@@ -10,9 +10,8 @@ Pod::Spec.new do |s|
s.source_files = 'BlocksKit'
s.dependency 'A2DynamicDelegate'
s.clean_paths = 'GHUnitIOS.framework/', 'Tests/', 'BlocksKit.xcodeproj/', '.gitignore'
- if config.ios?
- s.frameworks = 'MessageUI'
- end
+ s.ios.frameworks = 'MessageUI'
+
def s.post_install(target)
prefix_header = config.project_pods_root + target.prefix_header_filename
prefix_header.open('a') do |file|
View
5 BlocksKit/1.0.1/BlocksKit.podspec
@@ -10,9 +10,8 @@ Pod::Spec.new do |s|
s.source_files = 'BlocksKit'
s.dependency 'A2DynamicDelegate'
s.clean_paths = 'GHUnitIOS.framework/', 'Tests/', 'BlocksKit.xcodeproj/', '.gitignore'
- if config.ios?
- s.frameworks = 'MessageUI'
- end
+ s.ios.frameworks = 'MessageUI'
+
def s.post_install(target)
prefix_header = config.project_pods_root + target.prefix_header_filename
prefix_header.open('a') do |file|
View
5 BlocksKit/1.0.2/BlocksKit.podspec
@@ -10,9 +10,8 @@ Pod::Spec.new do |s|
s.source_files = 'BlocksKit'
s.dependency 'A2DynamicDelegate'
s.clean_paths = 'GHUnitIOS.framework/', 'Tests/', 'BlocksKit.xcodeproj/', '.gitignore'
- if config.ios?
- s.frameworks = 'MessageUI'
- end
+ s.ios.frameworks = 'MessageUI'
+
def s.post_install(target)
prefix_header = config.project_pods_root + target.prefix_header_filename
prefix_header.open('a') do |file|
View
5 BlocksKit/1.0.3/BlocksKit.podspec
@@ -10,9 +10,8 @@ Pod::Spec.new do |s|
s.source_files = 'BlocksKit'
s.dependency 'A2DynamicDelegate'
s.clean_paths = 'GHUnitIOS.framework/', 'Tests/', 'BlocksKit.xcodeproj/', '.gitignore'
- if config.ios?
- s.frameworks = 'MessageUI'
- end
+ s.ios.frameworks = 'MessageUI'
+
def s.post_install(target)
prefix_header = config.project_pods_root + target.prefix_header_filename
prefix_header.open('a') do |file|
View
5 BlocksKit/1.0.4/BlocksKit.podspec
@@ -10,9 +10,8 @@ Pod::Spec.new do |s|
s.source_files = 'BlocksKit'
s.dependency 'A2DynamicDelegate'
s.clean_paths = 'GHUnitIOS.framework/', 'Tests/', 'BlocksKit.xcodeproj/', '.gitignore'
- if config.ios?
- s.frameworks = 'MessageUI'
- end
+ s.ios.frameworks = 'MessageUI'
+
def s.post_install(target)
prefix_header = config.project_pods_root + target.prefix_header_filename
prefix_header.open('a') do |file|
View
5 BlocksKit/1.0.5/BlocksKit.podspec
@@ -10,9 +10,8 @@ Pod::Spec.new do |s|
s.source_files = 'BlocksKit'
s.dependency 'A2DynamicDelegate'
s.clean_paths = 'GHUnitIOS.framework/', 'Tests/', 'BlocksKit.xcodeproj/', '.gitignore'
- if config.ios?
- s.frameworks = 'MessageUI'
- end
+ s.ios.frameworks = 'MessageUI'
+
def s.post_install(target)
prefix_header = config.project_pods_root + target.prefix_header_filename
prefix_header.open('a') do |file|
View
12 BlocksKit/1.0.6/BlocksKit.podspec
@@ -9,12 +9,12 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/zwaldowski/BlocksKit.git', :tag => 'v1.0.6' }
s.dependency 'A2DynamicDelegate'
s.clean_paths = 'GHUnitIOS.framework/', 'Tests/', 'BlocksKit.xcodeproj/', '.gitignore'
- if config.ios?
- s.frameworks = 'MessageUI'
- s.source_files = 'BlocksKit/*.{h,m}', 'BlocksKit/UIKit/*.{h,m}', 'BlocksKit/MessageUI/*.{h,m}'
- else
- s.source_files = 'BlocksKit/*.{h,m}'
- end
+
+ s.ios.frameworks = 'MessageUI'
+ s.ios.source_files = 'BlocksKit/*.{h,m}', 'BlocksKit/UIKit/*.{h,m}', 'BlocksKit/MessageUI/*.{h,m}'
+
+ s.osx.source_files = 'BlocksKit/*.{h,m}'
+
def s.post_install(target)
prefix_header = config.project_pods_root + target.prefix_header_filename
prefix_header.open('a') do |file|
View
7 CocoaAsyncSocket/0.0.1/CocoaAsyncSocket.podspec
@@ -18,9 +18,6 @@ Pod::Spec.new do |s|
s.source_files = '{GCD,RunLoop}/*.{h,m}'
s.clean_paths = 'Vendor', 'GCD/Xcode', 'RunLoop/Xcode'
- if config.ios?
- s.frameworks = 'CFNetwork'
- else
- s.frameworks = 'CoreServices'
- end
+ s.ios.frameworks = 'CFNetwork'
+ s.osx.frameworks = 'CoreServices'
end
View
32 CocoaHTTPServer/2.2.1/CocoaHTTPServer.podspec
@@ -1,20 +1,20 @@
Pod::Spec.new do |s|
- s.name = 'CocoaHTTPServer'
- s.version = '2.2.1'
- s.license = 'BSD'
- s.summary = 'A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications'
- s.homepage = 'https://github.com/robbiehanson/CocoaHTTPServer'
- s.authors = { 'Robbie Hanson' => 'cocoahttpserver@googlegroups.com' }
- s.source = { :git => 'https://github.com/robbiehanson/CocoaHTTPServer.git', :tag => '2.2.1' }
- s.source_files = '{Core,Extensions}/**/*.{h,m}'
- s.clean_paths = %w{Samples Vendor}
- if config.ios?
- s.frameworks = 'CFNetwork', 'Security'
- else
- s.frameworks = 'CoreServices', 'Security'
- end
- s.library = 'xml2'
- s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }
+ s.name = 'CocoaHTTPServer'
+ s.version = '2.2.1'
+ s.license = 'BSD'
+ s.summary = 'A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications'
+ s.homepage = 'https://github.com/robbiehanson/CocoaHTTPServer'
+ s.authors = { 'Robbie Hanson' => 'cocoahttpserver@googlegroups.com' }
+ s.source = { :git => 'https://github.com/robbiehanson/CocoaHTTPServer.git', :tag => '2.2.1' }
+ s.source_files = '{Core,Extensions}/**/*.{h,m}'
+ s.clean_paths = %w{Samples Vendor}
+
+ s.ios.frameworks = 'CFNetwork', 'Security'
+ s.osx.frameworks = 'CoreServices', 'Security'
+
+ s.library = 'xml2'
+ s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }
+
s.dependency "CocoaAsyncSocket", "0.0.1"
s.dependency "CocoaLumberjack", "1.3"
end
View
8 CorePlot/1.0/CorePlot.podspec
@@ -16,12 +16,8 @@ Pod::Spec.new do |s|
files = FileList['framework/TestResources/CorePlotProbes.d', 'framework/Source/*.{h,m}']
files.exclude(/(TestCase|Tests)\.[hm]/)
- if config.ios?
- files.include('framework/CorePlot-CocoaTouch.h', 'framework/iPhoneOnly/*.{h,m}')
- else
- files.include('framework/CorePlot.h', 'framework/MacOnly/*.{h,m}')
- end
- s.source_files = files
+ s.ios.source_files = files.dup.include('framework/CorePlot-CocoaTouch.h', 'framework/iPhoneOnly/*.{h,m}')
+ s.osx.source_files = files.dup.include('framework/CorePlot.h', 'framework/MacOnly/*.{h,m}')
s.clean_paths = 'documentation', 'examples', 'scripts', 'QCPlugin', 'framework/*.{xcodeproj,lproj}'
s.framework = 'QuartzCore'
View
14 MKNetworkKit/0.82/MKNetworkKit.podspec
@@ -8,14 +8,12 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/MugunthKumar/MKNetworkKit.git', :tag => 'v0.82' }
files = FileList['MKNetworkKit/*.{h,m}', 'MKNetworkKit/Categories/*.{h,m}']
- if config.ios?
- files.exclude(/NSAlert/)
- s.frameworks = 'CFNetwork', 'Security'
- else
- files.exclude(/UIAlertView/)
- s.frameworks = 'CoreServices', 'Security'
- end
- s.source_files = files
+ s.ios.source_files = files.dup.exclude(/NSAlert/)
+ s.osx.source_files = files.dup.exclude(/UIAlertView/)
+
+ s.ios.frameworks = 'CFNetwork', 'Security'
+ s.osx.frameworks = 'CoreServices', 'Security'
+
s.clean_paths = 'MKNetworkKit-*', '*-Demo', 'SampleImage.jpg'
s.requires_arc = true
View
14 MKNetworkKit/0.83/MKNetworkKit.podspec
@@ -8,14 +8,12 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/MugunthKumar/MKNetworkKit.git', :tag => 'v0.83' }
files = FileList['MKNetworkKit/*.{h,m}', 'MKNetworkKit/Categories/*.{h,m}']
- if config.ios?
- files.exclude(/NSAlert/)
- s.frameworks = 'CFNetwork', 'Security'
- else
- files.exclude(/UIAlertView/)
- s.frameworks = 'CoreServices', 'Security'
- end
- s.source_files = files
+ s.ios.source_files = files.dup.exclude(/NSAlert/)
+ s.osx.source_files = files.dup.exclude(/UIAlertView/)
+
+ s.ios.frameworks = 'CFNetwork', 'Security'
+ s.osx.frameworks = 'CoreServices', 'Security'
+
s.clean_paths = 'MKNetworkKit-*', '*-Demo', 'SampleImage.jpg'
s.requires_arc = true
View
7 RestKit/0.9.3/RestKit.podspec
@@ -20,11 +20,8 @@ Pod::Spec.new do |s|
ns.description = 'The network layer provides a request/response abstraction on top of NSURLConnection.'
ns.dependency 'LibComponentLogging-NSLog'
ns.source_files = 'Code/RestKit.h', 'Code/{Network,Support}/*.{h,m}'
- if config.ios?
- ns.frameworks = 'CFNetwork', 'Security', 'MobileCoreServices', 'SystemConfiguration'
- else
- ns.frameworks = 'CoreServices', 'Security', 'SystemConfiguration'
- end
+ ns.ios.frameworks = 'CFNetwork', 'Security', 'MobileCoreServices', 'SystemConfiguration'
+ ns.osx.frameworks = 'CoreServices', 'Security', 'SystemConfiguration'
end
# Like before, this creates a new spec with the name: RestKit/ObjectMapping and is a part of RestKit
View
6 ZipKit/0.0.1/ZipKit.podspec
@@ -16,11 +16,11 @@ Pod::Spec.new do |s|
"invoking object (e.g., a NSOperation or NSThread)."
files = FileList['**/*.{h,m}']
- files.exclude(/GMAppleDouble/) if config.ios?
- s.source_files = files
+ s.ios.source_files = files.dup.exclude(/GMAppleDouble/)
+ s.osx.source_files = files
s.clean_paths = 'ZipKit.{xcodeproj,lineform}', 'ZipKitFW-Info.plist', 'ZipKit_Prefix.pch', 'Demo Projects'
s.library = 'z'
- s.framework = 'CoreServices' if config.osx?
+ s.osx.framework = 'CoreServices'
end

0 comments on commit a313ec6

Please sign in to comment.