@@ -6,43 +6,28 @@ Pod::Spec.new do |s|
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' => '[email protected] ' }
9
- s . source = { :git => 'https://github.com/AFNetworking/AFNetworking.git' , :tag => s . version , :submodules => true }
10
- s . requires_arc = true
11
-
12
- s . public_header_files = 'AFNetworking/AFNetworking.h'
13
- s . source_files = 'AFNetworking/AFNetworking.h'
14
-
15
- pch_AF = <<-EOS
16
- #ifndef TARGET_OS_IOS
17
- #define TARGET_OS_IOS TARGET_OS_IPHONE
18
- #endif
9
+ s . source = { :git => 'https://github.com/AFNetworking/AFNetworking.git' , :tag => s . version }
10
+
11
+ s . pod_target_xcconfig = {
12
+ 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.alamofire.AFNetworking'
13
+ }
19
14
20
- #ifndef TARGET_OS_WATCH
21
- #define TARGET_OS_WATCH 0
22
- #endif
15
+ s . source_files = 'AFNetworking/AFNetworking.h'
23
16
24
- #ifndef TARGET_OS_TV
25
- #define TARGET_OS_TV 0
26
- #endif
27
- EOS
28
- s . prefix_header_contents = pch_AF
29
-
30
17
s . ios . deployment_target = '9.0'
31
18
s . osx . deployment_target = '10.10'
32
19
s . watchos . deployment_target = '2.0'
33
20
s . tvos . deployment_target = '9.0'
34
-
21
+
35
22
s . subspec 'Serialization' do |ss |
36
23
ss . source_files = 'AFNetworking/AFURL{Request,Response}Serialization.{h,m}'
37
- ss . public_header_files = 'AFNetworking/AFURL{Request,Response}Serialization.h'
38
24
ss . watchos . frameworks = 'MobileCoreServices' , 'CoreGraphics'
39
25
ss . ios . frameworks = 'MobileCoreServices' , 'CoreGraphics'
40
26
ss . osx . frameworks = 'CoreServices'
41
27
end
42
28
43
29
s . subspec 'Security' do |ss |
44
30
ss . source_files = 'AFNetworking/AFSecurityPolicy.{h,m}'
45
- ss . public_header_files = 'AFNetworking/AFSecurityPolicy.h'
46
31
ss . frameworks = 'Security'
47
32
end
48
33
52
37
ss . tvos . deployment_target = '9.0'
53
38
54
39
ss . source_files = 'AFNetworking/AFNetworkReachabilityManager.{h,m}'
55
- ss . public_header_files = 'AFNetworking/AFNetworkReachabilityManager.h'
56
40
57
41
ss . frameworks = 'SystemConfiguration'
58
42
end
65
49
ss . dependency 'AFNetworking/Security'
66
50
67
51
ss . source_files = 'AFNetworking/AF{URL,HTTP}SessionManager.{h,m}' , 'AFNetworking/AFCompatibilityMacros.h'
68
- ss . public_header_files = 'AFNetworking/AF{URL,HTTP}SessionManager.h' , 'AFNetworking/AFCompatibilityMacros.h'
69
52
end
70
53
71
54
s . subspec 'UIKit' do |ss |
72
55
ss . ios . deployment_target = '9.0'
73
56
ss . tvos . deployment_target = '9.0'
74
57
ss . dependency 'AFNetworking/NSURLSession'
75
58
76
- ss . public_header_files = 'UIKit+AFNetworking/*.h'
77
59
ss . source_files = 'UIKit+AFNetworking'
78
60
end
79
61
end
0 commit comments