/
Booming.podspec
127 lines (109 loc) · 4.19 KB
/
Booming.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#
# Be sure to run 'pod lib lint Booming.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'Booming'
s.version = '1.0.3'
s.summary = 'Network Api Library.'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.homepage = 'https://github.com/yangKJ/RxNetworks'
s.description = 'https://github.com/yangKJ/RxNetworks/blob/master/README.md'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'yangkejun' => 'yangkj310@gmail.com' }
s.source = { :git => 'https://github.com/yangKJ/RxNetworks.git', :tag => "#{s.version}" }
s.social_media_url = 'https://juejin.cn/user/1987535102554472/posts'
s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.13'
s.swift_version = '5.0'
s.requires_arc = true
s.static_framework = true
s.cocoapods_version = '>= 1.4.0'
s.pod_target_xcconfig = {
'SWIFT_WHOLE_MODULE_OPTIMIZATION' => 'YES',
"OTHER_SWIFT_FLAGS[config=Debug]" => "-D DEBUG",
}
s.default_subspec = 'Core'
s.subspec 'Core' do |ss|
ss.source_files = 'Booming/*.swift'
ss.dependency 'Moya'
ss.framework = "Foundation"
end
s.subspec 'Lottie' do |xxx|
xxx.source_files = 'Plugins/Lottie/*.swift'
xxx.dependency 'Booming/Core'
xxx.dependency 'lottie-ios'
xxx.ios.deployment_target = '11.0'
end
s.subspec 'Debugging' do |xxx|
xxx.source_files = 'Plugins/Debugging/*.swift'
xxx.dependency 'Booming/Core'
xxx.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'BOOMING_PLUGINGS_DEBUGGING',
'GCC_PREPROCESSOR_DEFINITIONS' => 'BOOMING_PLUGINGS_DEBUGGING=1'
}
end
s.subspec 'Cache' do |xxx|
xxx.source_files = 'Plugins/Cache/*.swift'
xxx.dependency 'Booming/Core'
xxx.dependency 'CacheX', '~> 1.1.0'
end
s.subspec 'GZip' do |xxx|
xxx.source_files = 'Plugins/GZip/*.swift'
xxx.dependency 'Booming/Core'
end
s.subspec 'Shared' do |xxx|
xxx.source_files = 'Plugins/Shared/*.swift'
xxx.dependency 'Booming/Core'
xxx.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'BOOMING_PLUGINGS_SHARED',
'GCC_PREPROCESSOR_DEFINITIONS' => 'BOOMING_PLUGINGS_SHARED=1'
}
end
s.subspec 'Header' do |xxx|
xxx.source_files = 'Plugins/Header/*.swift'
xxx.dependency 'Booming/Core'
xxx.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'BOOMING_PLUGINGS_HTTPHEADER',
'GCC_PREPROCESSOR_DEFINITIONS' => 'BOOMING_PLUGINGS_HTTPHEADER=1'
}
end
s.subspec 'Files' do |xxx|
xxx.source_files = 'Plugins/Files/*.swift'
xxx.dependency 'Booming/Core'
xxx.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'BOOMING_PLUGINGS_DOWNLOAD_UPLOAD',
'GCC_PREPROCESSOR_DEFINITIONS' => 'BOOMING_PLUGINGS_DOWNLOAD_UPLOAD=1'
}
end
################## -- ios插件系列 -- ##################
s.subspec 'Loading' do |xxx|
xxx.ios.source_files = 'Plugins/Loading/*.swift'
xxx.dependency 'Booming/Core'
xxx.ios.dependency 'MBProgressHUD'
end
s.subspec 'Warning' do |xxx|
xxx.ios.source_files = 'Plugins/Warning/*.swift'
xxx.dependency 'Booming/Core'
xxx.ios.dependency 'MBProgressHUD'
xxx.ios.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'BOOMING_PLUGINGS_WARNING',
'GCC_PREPROCESSOR_DEFINITIONS' => 'BOOMING_PLUGINGS_WARNING=1'
}
end
s.subspec 'Indicator' do |xxx|
xxx.ios.source_files = 'Plugins/Indicator/*.swift'
xxx.dependency 'Booming/Core'
xxx.ios.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'BOOMING_PLUGINGS_INDICATOR',
'GCC_PREPROCESSOR_DEFINITIONS' => 'BOOMING_PLUGINGS_INDICATOR=1'
}
end
end