-
Notifications
You must be signed in to change notification settings - Fork 2
/
CXSwiftKit.podspec
142 lines (114 loc) · 4.9 KB
/
CXSwiftKit.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#
# Be sure to run `pod lib lint CXSwiftKit.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 = 'CXSwiftKit'
s.version = '2.0.6'
s.summary = 'CXSwiftKit provides the utilities and rich extensions of Swift language.'
# 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.description = <<-DESC
TODU: CXSwiftKit provides the utilities and rich extensions of Swift language.
DESC
s.homepage = 'https://github.com/chenxing640/CXSwiftKit'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Teng Fei' => 'hansen981@126.com' }
s.source = { :git => 'https://github.com/chenxing640/CXSwiftKit.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.swift_versions = ['4.2', '5.0']
s.ios.deployment_target = '11.0'
s.tvos.deployment_target = '11.0'
s.osx.deployment_target = '10.15'
s.watchos.deployment_target = "5.0"
s.requires_arc = true
#s.default_subspec = 'Core'
#s.default_subspecs = 'Base', 'ApplePay', 'Core'
s.default_subspecs = 'Base', 'Core'
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
#s.source_files = 'CXSwiftKit/Classes/**/*'
# s.resource_bundles = {
# 'CXSwiftKit' => ['CXSwiftKit/Assets/*.png']
# }
# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
s.subspec "Base" do |base|
base.source_files = 'CXSwiftKit/Classes/Base/*.{swift}'
end
s.subspec "Extension" do |ext|
ext.source_files = 'CXSwiftKit/Classes/Extension/*.{swift}'
ext.dependency 'CXSwiftKit/Base'
end
s.subspec "FileOperation" do |fp|
fp.source_files = 'CXSwiftKit/Classes/FileOperation/*.{swift}'
fp.dependency 'CXSwiftKit/Extension'
end
s.subspec "Core" do |core|
core.source_files = 'CXSwiftKit/Classes/Core/*.{swift}'
core.dependency 'CXSwiftKit/FileOperation'
core.dependency 'DYFSwiftKeychain'
core.subspec "Permissions" do |pm|
pm.source_files = 'CXSwiftKit/Classes/Core/Permissions/*.{swift}'
pm.dependency 'CXSwiftKit/Base'
end
core.subspec "Camera" do |cam|
cam.source_files = 'CXSwiftKit/Classes/Core/Camera/*.{swift}'
cam.dependency 'CXSwiftKit/Base'
end
core.subspec "DocumentPicker" do |dp|
dp.source_files = 'CXSwiftKit/Classes/Core/DocumentPicker/*.{swift}'
end
core.subspec "Widget" do |wd|
wd.source_files = 'CXSwiftKit/Classes/Core/Widget/*.{swift}'
wd.dependency 'CXSwiftKit/Base'
end
core.subspec "AVToolbox" do |avtb|
avtb.source_files = 'CXSwiftKit/Classes/Core/AVToolbox/*.{swift}'
avtb.dependency 'CXSwiftKit/FileOperation'
end
core.subspec "CustomOverlayView" do |cov|
cov.source_files = 'CXSwiftKit/Classes/Core/CustomOverlayView/*.{swift}'
cov.dependency 'CXSwiftKit/Extension'
end
core.subspec "LiveGift" do |livegift|
livegift.source_files = 'CXSwiftKit/Classes/Core/LiveGift/*.{swift}'
livegift.dependency 'CXSwiftKit/Extension'
end
core.subspec "Timer" do |timer|
timer.source_files = 'CXSwiftKit/Classes/Core/Timer/*.{swift}'
timer.dependency 'CXSwiftKit/Extension'
end
core.subspec "Transition" do |transition|
transition.source_files = 'CXSwiftKit/Classes/Core/Transition/*.{swift}'
transition.dependency 'CXSwiftKit/Extension'
end
end
s.subspec "ApplePay" do |applepay|
applepay.source_files = 'CXSwiftKit/Classes/ApplePay/*.{swift}'
applepay.resource = 'CXSwiftKit/Assets/ApplePay/*.png'
applepay.ios.deployment_target = '11.0'
applepay.osx.deployment_target = '11.0'
applepay.dependency 'CXSwiftKit/Base'
end
s.subspec "KingfisherWrapper" do |kfw|
kfw.source_files = 'CXSwiftKit/Classes/KingfisherWrapper/*.{swift}'
kfw.ios.deployment_target = '11.0'
kfw.tvos.deployment_target = '11.0'
kfw.dependency 'CXSwiftKit/Extension'
kfw.dependency 'Kingfisher', '~> 6.3.1' #supports iOS 10+
end
s.subspec "SDWebImageWrapper" do |sdww|
sdww.source_files = 'CXSwiftKit/Classes/SDWebImageWrapper/*.{swift}'
sdww.dependency 'CXSwiftKit/Base'
sdww.dependency 'SDWebImage', '~> 5.19.1'
end
end