AFNetworking.podspec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Pod::Spec.new do |s|
  2. s.name = 'AFNetworking'
  3. s.version = '3.0.0'
  4. s.license = 'MIT'
  5. s.summary = 'A delightful iOS and OS X networking framework.'
  6. s.homepage = 'https://github.com/AFNetworking/AFNetworking'
  7. s.social_media_url = 'https://twitter.com/AFNetworking'
  8. s.authors = { 'Mattt Thompson' => 'm@mattt.me' }
  9. s.source = { :git => 'https://github.com/AFNetworking/AFNetworking.git', :tag => s.version, :submodules => true }
  10. s.requires_arc = true
  11. s.public_header_files = 'AFNetworking/AFNetworking.h'
  12. s.source_files = 'AFNetworking/AFNetworking.h'
  13. pch_AF = <<-EOS
  14. #ifndef TARGET_OS_IOS
  15. #define TARGET_OS_IOS TARGET_OS_IPHONE
  16. #endif
  17. #ifndef TARGET_OS_WATCH
  18. #define TARGET_OS_WATCH 0
  19. #endif
  20. #ifndef TARGET_OS_TV
  21. #define TARGET_OS_TV 0
  22. #endif
  23. EOS
  24. s.prefix_header_contents = pch_AF
  25. s.ios.deployment_target = '7.0'
  26. s.osx.deployment_target = '10.9'
  27. s.watchos.deployment_target = '2.0'
  28. s.tvos.deployment_target = '9.0'
  29. s.subspec 'Serialization' do |ss|
  30. ss.source_files = 'AFNetworking/AFURL{Request,Response}Serialization.{h,m}'
  31. ss.public_header_files = 'AFNetworking/AFURL{Request,Response}Serialization.h'
  32. ss.watchos.frameworks = 'MobileCoreServices', 'CoreGraphics'
  33. ss.ios.frameworks = 'MobileCoreServices', 'CoreGraphics'
  34. ss.osx.frameworks = 'CoreServices'
  35. end
  36. s.subspec 'Security' do |ss|
  37. ss.source_files = 'AFNetworking/AFSecurityPolicy.{h,m}'
  38. ss.public_header_files = 'AFNetworking/AFSecurityPolicy.h'
  39. ss.frameworks = 'Security'
  40. end
  41. s.subspec 'Reachability' do |ss|
  42. ss.ios.deployment_target = '7.0'
  43. ss.osx.deployment_target = '10.9'
  44. ss.tvos.deployment_target = '9.0'
  45. ss.source_files = 'AFNetworking/AFNetworkReachabilityManager.{h,m}'
  46. ss.public_header_files = 'AFNetworking/AFNetworkReachabilityManager.h'
  47. ss.frameworks = 'SystemConfiguration'
  48. end
  49. s.subspec 'NSURLSession' do |ss|
  50. ss.dependency 'AFNetworking/Serialization'
  51. ss.ios.dependency 'AFNetworking/Reachability'
  52. ss.osx.dependency 'AFNetworking/Reachability'
  53. ss.tvos.dependency 'AFNetworking/Reachability'
  54. ss.dependency 'AFNetworking/Security'
  55. ss.source_files = 'AFNetworking/AF{URL,HTTP}SessionManager.{h,m}'
  56. ss.public_header_files = 'AFNetworking/AF{URL,HTTP}SessionManager.h'
  57. end
  58. s.subspec 'UIKit' do |ss|
  59. ss.ios.deployment_target = '7.0'
  60. ss.tvos.deployment_target = '9.0'
  61. ss.dependency 'AFNetworking/NSURLSession'
  62. ss.public_header_files = 'UIKit+AFNetworking/*.h'
  63. ss.source_files = 'UIKit+AFNetworking'
  64. end
  65. end