-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSwiftModules.podspec
More file actions
108 lines (91 loc) · 3.44 KB
/
SwiftModules.podspec
File metadata and controls
108 lines (91 loc) · 3.44 KB
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
#
# Be sure to run `pod lib lint SwiftModules.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 = 'SwiftModules'
s.version = '0.1.0'
s.summary = '关于iOS Swift的一些模块私有库.'
# 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
Include "分类,网络请求,工具方法", Support the Objective - C language.
DESC
s.homepage = 'https://github.com/aichiko0225/SwiftModules'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'ash' => 'aichiko66@163.com' }
s.source = { :git => 'https://github.com/aichiko0225/SwiftModules.git', :tag => s.version.to_s }
s.social_media_url = 'https://github.com/aichiko0225'
# s.static_framework = true
s.ios.deployment_target = '10.0'
s.default_subspecs = 'Extensions', 'Services_Rx', 'RxComponents'
# s.source_files = 'SwiftModules/Classes/**/*'
s.swift_version = ['5.0', '4.0', '4.2']
s.frameworks='Foundation','UIKit'
# subspec
s.subspec 'Extensions' do |ss|
ss.source_files = 'SwiftModules/Extensions/**/*.swift'
# 混淆view 的声明周期
ss.subspec 'Swizzled' do |sss|
sss.source_files = 'SwiftModules/Extensions/Swizzled/*.swift'
end
# dependency
ss.dependency 'SwifterSwift'
end
s.subspec 'Services' do |ss|
ss.source_files = 'SwiftModules/Services/**/*.swift'
# dependency
ss.dependency 'Moya'
ss.dependency 'SwiftyJSON'
ss.dependency 'YYCache'
ss.dependency 'HandyJSON', '~> 5.0.2'
end
s.subspec "Services_Rx" do |ss|
ss.source_files = "SwiftModules/Services_Rx/*.swift"
ss.dependency "SwiftModules/Services"
ss.dependency "RxSwift", "~> 5.0"
end
# RxComponents
s.subspec 'RxComponents' do |ss|
ss.source_files = 'SwiftModules/RxComponents/**/*.swift'
ss.dependency 'RxSwift'
ss.dependency 'RxCocoa'
ss.dependency 'RxDataSources'
ss.dependency 'MJRefresh'
end
# Utility 工具类,其他实用性代码
s.subspec 'Utility' do |ss|
ss.source_files = 'SwiftModules/Utility/**/*.swift'
# CCEmptyDataSet 用于显示空视图
# 详细信息请查看 https://github.com/aichiko0225/CCEmptyDataSet
ss.dependency 'CCEmptyDataSet'
ss.dependency 'Kingfisher'
end
s.subspec 'Router' do |ss|
ss.source_files = 'SwiftModules/Router/*.swift'
# URLNavigator 路由依赖,无敌的
ss.dependency "URLNavigator"
end
# iOSHelper 一些通用性代码
s.subspec 'Helpers' do |ss|
ss.source_files = 'SwiftModules/iOS_Helper/**/*.{h,m,swift}'
end
# s.resource_bundles = {
# 'SwiftModules' => ['SwiftModules/Assets/*.png']
# }
# s.public_header_files = 'Pod/Classes/**/*.h'
# s.dependency 'AFNetworking', '~> 2.3'
# 约束布局
s.dependency 'SnapKit'
# MBProgressHUD - HUD显示
s.dependency 'MBProgressHUD'
# Logger
s.dependency 'SwiftyBeaver'
end