|
1 | 1 | Pod::Spec.new do |s| |
2 | 2 | s.name = 'AFNetworking' |
3 | | - s.version = '3.2.2' |
| 3 | + s.version = '4.0.1' |
4 | 4 | s.license = 'MIT' |
5 | | - s.summary = 'A delightful iOS and OS X networking framework.' |
| 5 | + s.summary = 'A delightful networking framework for Apple platforms.' |
6 | 6 | s.homepage = 'https://github.com/AFNetworking/AFNetworking' |
7 | 7 | s.social_media_url = 'https://twitter.com/AFNetworking' |
8 | 8 | s.authors = { 'Mattt Thompson' => 'm@mattt.me' } |
9 | | - s.source = { :git => 'https://github.com/AFNetworking/AFNetworking.git', :tag => s.version, :submodules => true } |
| 9 | + s.source = { :git => 'https://github.com/AFNetworking/AFNetworking.git', :tag => s.version } |
10 | 10 | s.requires_arc = true |
11 | 11 |
|
12 | 12 | s.public_header_files = 'AFNetworking/AFNetworking.h' |
13 | 13 | s.source_files = 'AFNetworking/AFNetworking.h' |
14 | 14 | s.resource_bundles = {'AFNetworking' => ['AFNetworking/PrivacyInfo.xcprivacy']} |
15 | | - |
16 | | - pch_AF = <<-EOS |
17 | | -#ifndef TARGET_OS_IOS |
18 | | - #define TARGET_OS_IOS TARGET_OS_IPHONE |
19 | | -#endif |
20 | | -
|
21 | | -#ifndef TARGET_OS_WATCH |
22 | | - #define TARGET_OS_WATCH 0 |
23 | | -#endif |
24 | 15 |
|
25 | | -#ifndef TARGET_OS_TV |
26 | | - #define TARGET_OS_TV 0 |
27 | | -#endif |
28 | | -EOS |
29 | | - s.prefix_header_contents = pch_AF |
30 | | - |
31 | 16 | s.ios.deployment_target = '12.0' |
32 | 17 | s.osx.deployment_target = '10.13' |
33 | 18 | s.watchos.deployment_target = '4.0' |
34 | 19 | s.tvos.deployment_target = '12.0' |
35 | | - |
| 20 | + |
| 21 | + s.ios.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.alamofire.AFNetworking' } |
| 22 | + s.osx.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.alamofire.AFNetworking' } |
| 23 | + s.watchos.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.alamofire.AFNetworking-watchOS' } |
| 24 | + s.tvos.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.alamofire.AFNetworking' } |
| 25 | + |
| 26 | + s.source_files = 'AFNetworking/AFNetworking.h' |
| 27 | + |
36 | 28 | s.subspec 'Serialization' do |ss| |
37 | 29 | ss.source_files = 'AFNetworking/AFURL{Request,Response}Serialization.{h,m}' |
38 | | - ss.public_header_files = 'AFNetworking/AFURL{Request,Response}Serialization.h' |
39 | | - ss.watchos.frameworks = 'MobileCoreServices', 'CoreGraphics' |
40 | | - ss.ios.frameworks = 'MobileCoreServices', 'CoreGraphics' |
41 | | - ss.osx.frameworks = 'CoreServices' |
42 | 30 | end |
43 | 31 |
|
44 | 32 | s.subspec 'Security' do |ss| |
45 | 33 | ss.source_files = 'AFNetworking/AFSecurityPolicy.{h,m}' |
46 | | - ss.public_header_files = 'AFNetworking/AFSecurityPolicy.h' |
47 | | - ss.frameworks = 'Security' |
48 | 34 | end |
49 | 35 |
|
50 | 36 | s.subspec 'Reachability' do |ss| |
|
53 | 39 | ss.tvos.deployment_target = '12.0' |
54 | 40 |
|
55 | 41 | ss.source_files = 'AFNetworking/AFNetworkReachabilityManager.{h,m}' |
56 | | - ss.public_header_files = 'AFNetworking/AFNetworkReachabilityManager.h' |
57 | | - |
58 | | - ss.frameworks = 'SystemConfiguration' |
59 | 42 | end |
60 | 43 |
|
61 | 44 | s.subspec 'NSURLSession' do |ss| |
|
66 | 49 | ss.dependency 'AFNetworking/Security' |
67 | 50 |
|
68 | 51 | ss.source_files = 'AFNetworking/AF{URL,HTTP}SessionManager.{h,m}', 'AFNetworking/AFCompatibilityMacros.h' |
69 | | - ss.public_header_files = 'AFNetworking/AF{URL,HTTP}SessionManager.h', 'AFNetworking/AFCompatibilityMacros.h' |
70 | 52 | end |
71 | 53 |
|
72 | 54 | s.subspec 'UIKit' do |ss| |
73 | 55 | ss.ios.deployment_target = '12.0' |
74 | 56 | ss.tvos.deployment_target = '12.0' |
75 | 57 | ss.dependency 'AFNetworking/NSURLSession' |
76 | 58 |
|
77 | | - ss.public_header_files = 'UIKit+AFNetworking/*.h' |
78 | 59 | ss.source_files = 'UIKit+AFNetworking' |
79 | 60 | end |
80 | 61 | end |
0 commit comments