diff --git a/AFNetworking/0.5.1/AFNetworking.podspec b/AFNetworking/0.5.1/AFNetworking.podspec index 8ad72fdb..777095b5 100644 --- a/AFNetworking/0.5.1/AFNetworking.podspec +++ b/AFNetworking/0.5.1/AFNetworking.podspec @@ -6,9 +6,19 @@ Pod::Spec.new do |s| s.author = { 'Gowalla' => 'live@gowalla.com' } s.source = { :git => 'https://github.com/gowalla/AFNetworking.git', :tag => '0.5.1' } - s.source_files = 'AFNetworking' + 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 - s.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC -all_load -l z' } + s.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC -all_load -lz' } s.dependency 'JSONKit' end diff --git a/ASIHTTPRequest/1.8.1/ASIHTTPRequest.podspec b/ASIHTTPRequest/1.8.1/ASIHTTPRequest.podspec index 7d83bdd9..442dd63b 100644 --- a/ASIHTTPRequest/1.8.1/ASIHTTPRequest.podspec +++ b/ASIHTTPRequest/1.8.1/ASIHTTPRequest.podspec @@ -18,13 +18,14 @@ Pod::Spec.new do |s| using multipart/form-data. } - s.source_files = 'Classes' + if config.ios? + s.dependency 'Reachability', '~> 2.0', '>= 2.0.4' + s.source_files = 'Classes' + s.frameworks = 'SystemConfiguration', 'MobileCoreServices', 'CFNetwork' + else + s.source_files = 'Classes/ASI[^AuthenticationDialog]*.*' + s.frameworks = 'SystemConfiguration', 'CoreServices' + end - # TODO actually I think one or some of these are for Reachability - s.xcconfig = { 'OTHER_LDFLAGS' => '-framework SystemConfiguration ' \ - '-framework CFNetwork ' \ - '-framework MobileCoreServices ' \ - '-l z.1' } - - s.dependency 'Reachability', '~> 2.0', '>= 2.0.4' + s.library = 'z.1' end diff --git a/ASIHTTPRequest/1.8/ASIHTTPRequest.podspec b/ASIHTTPRequest/1.8/ASIHTTPRequest.podspec deleted file mode 100644 index 97a59ec2..00000000 --- a/ASIHTTPRequest/1.8/ASIHTTPRequest.podspec +++ /dev/null @@ -1,32 +0,0 @@ -Pod::Spec.new do |s| - s.name = 'ASIHTTPRequest' - s.version = '1.8' - s.summary = 'Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone' - s.homepage = 'http://allseeing-i.com/ASIHTTPRequest' - s.author = { 'Ben Copsey' => 'ben@allseeing-i.com' } - s.source = { :git => 'https://github.com/pokeb/asi-http-request.git', :tag => 'v1.8' } - - s.description = %{ - ASIHTTPRequest is an easy to use wrapper around the CFNetwork API that - makes some of the more tedious aspects of communicating with web servers - easier. It is written in Objective-C and works in both Mac OS X and iPhone - applications. - - It is suitable performing basic HTTP requests and interacting with - REST-based services (GET / POST / PUT / DELETE). The included - ASIFormDataRequest subclass makes it easy to submit POST data and files - using multipart/form-data. - } - - # Exclude the ASIWebPageRequest files. - s.source_files = 'Classes/ASI[^Web]*.*' - - # TODO actually I think one or some of these are for Reachability - s.xcconfig = { 'OTHER_LDFLAGS' => '-framework SystemConfiguration ' \ - '-framework CFNetwork ' \ - '-framework MobileCoreServices ' \ - '-l z.1' } - - s.dependency 'Reachability', '~> 2.0', '>= 2.0.4' -end - diff --git a/ASIWebPageRequest/1.8/ASIWebPageRequest.podspec b/ASIWebPageRequest/1.8/ASIWebPageRequest.podspec deleted file mode 100644 index 9ccbf893..00000000 --- a/ASIWebPageRequest/1.8/ASIWebPageRequest.podspec +++ /dev/null @@ -1,16 +0,0 @@ -Pod::Spec.new do |s| - s.name = 'ASIWebPageRequest' - s.version = '1.8' - s.homepage = 'http://allseeing-i.com/ASIHTTPRequest/ASIWebPageRequest' - s.author = { 'Ben Copsey' => 'ben@allseeing-i.com' } - - s.summary = %{ - The ASIWebPageRequest class included with ASIHTTPRequest lets you download - complete webpages, including external resources like images and stylesheets. - } - - s.part_of_dependency = 'ASIHTTPRequest', '1.8' - s.source_files = 'Classes/ASIWebPageRequest.h', 'Classes/ASIWebPageRequest.m' - - s.xcconfig = { 'OTHER_LDFLAGS' => '-l xml2.2.7.3', 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' } -end diff --git a/JSONKit/1.4/JSONKit.podspec b/JSONKit/1.4/JSONKit.podspec index 5c1de3d2..f36db71a 100644 --- a/JSONKit/1.4/JSONKit.podspec +++ b/JSONKit/1.4/JSONKit.podspec @@ -1,3 +1,5 @@ +# TODO JSONKit does *not* support GC, we need to specify that. + Pod::Spec.new do |s| s.name = 'JSONKit' s.version = '1.4' diff --git a/Reachability/2.0.4/Reachability.podspec b/Reachability/2.0.4/Reachability.podspec index 4d89589d..4c0ae096 100644 --- a/Reachability/2.0.4/Reachability.podspec +++ b/Reachability/2.0.4/Reachability.podspec @@ -1,6 +1,7 @@ Pod::Spec.new do |s| s.name = 'Reachability' s.version = '2.0.4' + s.platform = :ios s.part_of = 'ASIHTTPRequest', '>= 1.8' s.homepage = 'https://github.com/pokeb/asi-http-request/tree/v1.8.1/External/Reachability' s.authors = 'Apple', 'Donoho Design Group, LLC'