-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWYBasisKit.podspec
executable file
·140 lines (122 loc) · 7.19 KB
/
WYBasisKit.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
Pod::Spec.new do |kit|
kit.name = 'WYBasisKit'
kit.version = '1.3.4'
kit.summary = 'WYBasisKit 不仅可以帮助开发者快速构建一个工程,还有基于常用网络框架和系统API而封装的各种实用方法、扩展,开发者只需简单的调用API就可以快速实现相应功能, 大幅提高开发效率。'
kit.description = <<-DESC
Localizable: 国际化解决方案
Extension: 各种系统扩展
Networking: 网络请求解决方案
Activity: 活动指示器
Storage: 本地存储
Layout: 各种自定义控件
Codable: 数据解析
Authorization: 各种权限请求与判断'
DESC
kit.homepage = 'https://github.com/gaunren/WYBasisKit-swift'
kit.license = { :type => 'MIT', :file => 'License.md' }
kit.author = { '官人' => 'mobileAppDvlp@icloud.com' }
kit.ios.deployment_target = '13.0'
kit.source = { :git => 'https://github.com/gaunren/WYBasisKit-swift.git', :tag => "#{kit.version}" }
#kit.source = { :svn => "http://192.168.xxx.xxx:xxxx/xxx/xxx/WYBasiskit"}
kit.swift_versions = '5.0'
kit.requires_arc = true
kit.default_subspecs = 'Extension'
kit.subspec 'Config' do |config|
config.source_files = 'WYBasisKit/Config/**/*'
config.frameworks = 'Foundation', 'UIKit'
end
kit.subspec 'Localizable' do |localizable|
localizable.source_files = 'WYBasisKit/Localizable/WYLocalizableManager.swift'
localizable.frameworks = 'Foundation', 'UIKit'
localizable.dependency 'WYBasisKit/Config'
end
kit.subspec 'Extension' do |extension|
extension.source_files = 'WYBasisKit/Extension/**/*'
extension.frameworks = 'Foundation', 'UIKit', 'LocalAuthentication', 'Photos', 'CoreFoundation'
extension.resource = 'WYBasisKit/Localizable/WYLocalizable.bundle'
extension.dependency 'WYBasisKit/Localizable'
extension.dependency 'WYBasisKit/Config'
end
kit.subspec 'Codable' do |codable|
codable.source_files = 'WYBasisKit/Codable/**/*'
codable.frameworks = 'Foundation', 'UIKit'
end
kit.subspec 'Networking' do |networking|
networking.source_files = 'WYBasisKit/Networking/**/*', 'WYBasisKit/Extension/UIAlertController/**/*'
networking.frameworks = 'Foundation', 'UIKit'
networking.resource = 'WYBasisKit/Localizable/WYLocalizable.bundle'
networking.dependency 'WYBasisKit/Localizable'
networking.dependency 'WYBasisKit/Storage'
networking.dependency 'WYBasisKit/Codable'
networking.dependency 'Moya'
end
kit.subspec 'Activity' do |activity|
activity.source_files = 'WYBasisKit/Activity/WYActivity.swift', 'WYBasisKit/Extension/UIView/UIView.swift', 'WYBasisKit/Extension/UIViewController/UIViewController.swift', 'WYBasisKit/Extension/NSAttributedString/NSAttributedString.swift', 'WYBasisKit/Extension/String/String.swift', 'WYBasisKit/Extension/UIImage/UIImage.swift', 'WYBasisKit/Config/WYBasisKitConfig.swift'
activity.frameworks = 'Foundation', 'UIKit'
activity.resource = 'WYBasisKit/Activity/WYActivity.bundle', 'WYBasisKit/Localizable/WYLocalizable.bundle'
activity.dependency 'WYBasisKit/Localizable'
end
kit.subspec 'Storage' do |storage|
storage.source_files = 'WYBasisKit/Storage/**/*'
storage.frameworks = 'Foundation', 'UIKit'
end
kit.subspec 'Authorization' do |authorization|
authorization.subspec 'Camera' do |camera|
camera.source_files = 'WYBasisKit/Authorization/Camera/**/*', 'WYBasisKit/Extension/UIAlertController/**/*'
camera.frameworks = 'AVFoundation', 'UIKit', 'Photos'
camera.resource = 'WYBasisKit/Localizable/WYLocalizable.bundle'
camera.dependency 'WYBasisKit/Localizable'
end
authorization.subspec 'Biometric' do |biometric|
biometric.source_files = 'WYBasisKit/Authorization/Biometric/**/*'
biometric.frameworks = 'Foundation', 'LocalAuthentication'
biometric.resource = 'WYBasisKit/Localizable/WYLocalizable.bundle'
biometric.dependency 'WYBasisKit/Localizable'
end
authorization.subspec 'Contacts' do |contacts|
contacts.source_files = 'WYBasisKit/Authorization/Contacts/**/*', 'WYBasisKit/Extension/UIAlertController/**/*'
contacts.frameworks = 'Contacts', 'UIKit'
contacts.resource = 'WYBasisKit/Localizable/WYLocalizable.bundle'
contacts.dependency 'WYBasisKit/Localizable'
end
authorization.subspec 'PhotoAlbums' do |photoAlbums|
photoAlbums.source_files = 'WYBasisKit/Authorization/PhotoAlbums/**/*', 'WYBasisKit/Extension/UIAlertController/**/*'
photoAlbums.frameworks = 'Photos', 'UIKit'
photoAlbums.resource = 'WYBasisKit/Localizable/WYLocalizable.bundle'
photoAlbums.dependency 'WYBasisKit/Localizable'
end
authorization.subspec 'Microphone' do |microphone|
microphone.source_files = 'WYBasisKit/Authorization/Microphone/**/*', 'WYBasisKit/Extension/UIAlertController/**/*'
microphone.frameworks = 'Photos', 'UIKit'
microphone.resource = 'WYBasisKit/Localizable/WYLocalizable.bundle'
microphone.dependency 'WYBasisKit/Localizable'
end
authorization.subspec 'SpeechRecognition' do |speechRecognition|
speechRecognition.source_files = 'WYBasisKit/Authorization/SpeechRecognition/**/*', 'WYBasisKit/Extension/UIAlertController/**/*'
speechRecognition.frameworks = 'Speech', 'UIKit'
speechRecognition.resource = 'WYBasisKit/Localizable/WYLocalizable.bundle'
speechRecognition.dependency 'WYBasisKit/Localizable'
end
end
kit.subspec 'Layout' do |layout|
layout.subspec 'ScrollText' do |scrollText|
scrollText.source_files = 'WYBasisKit/Layout/ScrollText/**/*', 'WYBasisKit/Config/WYBasisKitConfig.swift'
scrollText.frameworks = 'Foundation', 'UIKit'
scrollText.resource = 'WYBasisKit/Localizable/WYLocalizable.bundle'
scrollText.dependency 'WYBasisKit/Localizable'
scrollText.dependency 'SnapKit'
end
layout.subspec 'PagingView' do |pagingView|
pagingView.source_files = 'WYBasisKit/Layout/PagingView/**/*', 'WYBasisKit/Extension/UIView/**/*', 'WYBasisKit/Extension/UIButton/**/*', 'WYBasisKit/Extension/UIColor/**/*', 'WYBasisKit/Extension/UIImage/**/*', 'WYBasisKit/Config/WYBasisKitConfig.swift'
pagingView.frameworks = 'Foundation', 'UIKit'
pagingView.dependency 'SnapKit'
end
layout.subspec 'BannerView' do |bannerView|
bannerView.source_files = 'WYBasisKit/Layout/BannerView/WYBannerView.swift', 'WYBasisKit/Extension/UIView/**/*', 'WYBasisKit/Config/WYBasisKitConfig.swift'
bannerView.frameworks = 'Foundation', 'UIKit'
bannerView.resource = 'WYBasisKit/Layout/BannerView/WYBannerView.bundle', 'WYBasisKit/Localizable/WYLocalizable.bundle'
bannerView.dependency 'WYBasisKit/Localizable'
bannerView.dependency 'Kingfisher'
end
end
end