|
@@ -6,35 +6,21 @@ Pod::Spec.new do |s|
|
|
s.homepage = 'https://github.com/AFNetworking/AFNetworking'
|
|
s.homepage = 'https://github.com/AFNetworking/AFNetworking'
|
|
s.social_media_url = 'https://twitter.com/AFNetworking'
|
|
s.social_media_url = 'https://twitter.com/AFNetworking'
|
|
s.authors = { 'Mattt Thompson' => 'm@mattt.me' }
|
|
s.authors = { 'Mattt Thompson' => 'm@mattt.me' }
|
|
- s.source = { :git => 'https://github.com/AFNetworking/AFNetworking.git', :tag => s.version, :submodules => true }
|
|
|
|
- s.requires_arc = true
|
|
|
|
-
|
|
|
|
- s.public_header_files = 'AFNetworking/AFNetworking.h'
|
|
|
|
- s.source_files = 'AFNetworking/AFNetworking.h'
|
|
|
|
-
|
|
|
|
- pch_AF = <<-EOS
|
|
|
|
-#ifndef TARGET_OS_IOS
|
|
|
|
- #define TARGET_OS_IOS TARGET_OS_IPHONE
|
|
|
|
-#endif
|
|
|
|
|
|
+ s.source = { :git => 'https://github.com/AFNetworking/AFNetworking.git', :tag => s.version }
|
|
|
|
+
|
|
|
|
+ s.pod_target_xcconfig = {
|
|
|
|
+ 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.alamofire.AFNetworking'
|
|
|
|
+ }
|
|
|
|
|
|
-#ifndef TARGET_OS_WATCH
|
|
|
|
- #define TARGET_OS_WATCH 0
|
|
|
|
-#endif
|
|
|
|
|
|
+ s.source_files = 'AFNetworking/AFNetworking.h'
|
|
|
|
|
|
-#ifndef TARGET_OS_TV
|
|
|
|
- #define TARGET_OS_TV 0
|
|
|
|
-#endif
|
|
|
|
-EOS
|
|
|
|
- s.prefix_header_contents = pch_AF
|
|
|
|
-
|
|
|
|
s.ios.deployment_target = '9.0'
|
|
s.ios.deployment_target = '9.0'
|
|
s.osx.deployment_target = '10.10'
|
|
s.osx.deployment_target = '10.10'
|
|
s.watchos.deployment_target = '2.0'
|
|
s.watchos.deployment_target = '2.0'
|
|
s.tvos.deployment_target = '9.0'
|
|
s.tvos.deployment_target = '9.0'
|
|
-
|
|
|
|
|
|
+
|
|
s.subspec 'Serialization' do |ss|
|
|
s.subspec 'Serialization' do |ss|
|
|
ss.source_files = 'AFNetworking/AFURL{Request,Response}Serialization.{h,m}'
|
|
ss.source_files = 'AFNetworking/AFURL{Request,Response}Serialization.{h,m}'
|
|
- ss.public_header_files = 'AFNetworking/AFURL{Request,Response}Serialization.h'
|
|
|
|
ss.watchos.frameworks = 'MobileCoreServices', 'CoreGraphics'
|
|
ss.watchos.frameworks = 'MobileCoreServices', 'CoreGraphics'
|
|
ss.ios.frameworks = 'MobileCoreServices', 'CoreGraphics'
|
|
ss.ios.frameworks = 'MobileCoreServices', 'CoreGraphics'
|
|
ss.osx.frameworks = 'CoreServices'
|
|
ss.osx.frameworks = 'CoreServices'
|
|
@@ -42,7 +28,6 @@ EOS
|
|
|
|
|
|
s.subspec 'Security' do |ss|
|
|
s.subspec 'Security' do |ss|
|
|
ss.source_files = 'AFNetworking/AFSecurityPolicy.{h,m}'
|
|
ss.source_files = 'AFNetworking/AFSecurityPolicy.{h,m}'
|
|
- ss.public_header_files = 'AFNetworking/AFSecurityPolicy.h'
|
|
|
|
ss.frameworks = 'Security'
|
|
ss.frameworks = 'Security'
|
|
end
|
|
end
|
|
|
|
|
|
@@ -52,7 +37,6 @@ EOS
|
|
ss.tvos.deployment_target = '9.0'
|
|
ss.tvos.deployment_target = '9.0'
|
|
|
|
|
|
ss.source_files = 'AFNetworking/AFNetworkReachabilityManager.{h,m}'
|
|
ss.source_files = 'AFNetworking/AFNetworkReachabilityManager.{h,m}'
|
|
- ss.public_header_files = 'AFNetworking/AFNetworkReachabilityManager.h'
|
|
|
|
|
|
|
|
ss.frameworks = 'SystemConfiguration'
|
|
ss.frameworks = 'SystemConfiguration'
|
|
end
|
|
end
|
|
@@ -65,7 +49,6 @@ EOS
|
|
ss.dependency 'AFNetworking/Security'
|
|
ss.dependency 'AFNetworking/Security'
|
|
|
|
|
|
ss.source_files = 'AFNetworking/AF{URL,HTTP}SessionManager.{h,m}', 'AFNetworking/AFCompatibilityMacros.h'
|
|
ss.source_files = 'AFNetworking/AF{URL,HTTP}SessionManager.{h,m}', 'AFNetworking/AFCompatibilityMacros.h'
|
|
- ss.public_header_files = 'AFNetworking/AF{URL,HTTP}SessionManager.h', 'AFNetworking/AFCompatibilityMacros.h'
|
|
|
|
end
|
|
end
|
|
|
|
|
|
s.subspec 'UIKit' do |ss|
|
|
s.subspec 'UIKit' do |ss|
|
|
@@ -73,7 +56,6 @@ EOS
|
|
ss.tvos.deployment_target = '9.0'
|
|
ss.tvos.deployment_target = '9.0'
|
|
ss.dependency 'AFNetworking/NSURLSession'
|
|
ss.dependency 'AFNetworking/NSURLSession'
|
|
|
|
|
|
- ss.public_header_files = 'UIKit+AFNetworking/*.h'
|
|
|
|
ss.source_files = 'UIKit+AFNetworking'
|
|
ss.source_files = 'UIKit+AFNetworking'
|
|
end
|
|
end
|
|
end
|
|
end
|