-
Notifications
You must be signed in to change notification settings - Fork 12
/
LTXiOSUtils.podspec
85 lines (67 loc) · 3.3 KB
/
LTXiOSUtils.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
Pod::Spec.new do |s|
s.name = "LTXiOSUtils"
s.version = "0.0.3"
s.platform = :ios, "10.0" # iOS平台最低版本 10.0
s.summary = "通用工具类以及组件的整合、封装以及使用介绍"
s.homepage = "https://github.com/Coder-Star/LTXiOSUtils"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "CoderStar" => "[email protected]" }
# s.source = { :git => "https://github.com/Coder-Star/LTXiOSUtils.git", :tag => s.version } # 发布时启用
s.source = { :git => 'local', :tag => s.version} # 本地开发,local是随便起的名字
s.requires_arc = true
s.swift_version = ["5","4.2"]
# s.static_framework = true
# 模块化,假如组件中有OC代码,需要模块化,就需要进行开启,并且配合public_header_files使用,其中public_header_files加入的.h文件会反映到umbrella.h文件中去,如果自己创建framework,就需要自己创建umbrella.h文件,将自己想要保留的oc .h文件加入进去
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}
s.subspec 'Extension' do |extension|
extension.source_files = 'Sources/LTXiOSUtils/Classes/Extension/*.swift'
extension.subspec 'Core' do |core|
core.source_files = 'Sources/LTXiOSUtils/Classes/Extension/Core/*.swift'
end
extension.subspec 'SwiftStdlib' do |swift|
swift.dependency "LTXiOSUtils/Extension/Core"
swift.source_files = 'Sources/LTXiOSUtils/Classes/Extension/SwiftStdlib/*.swift'
end
extension.subspec 'Foundation' do |foundation|
foundation.dependency "LTXiOSUtils/Extension/Core"
foundation.source_files = 'Sources/LTXiOSUtils/Classes/Extension/Foundation/*.swift'
end
extension.subspec 'UIKit' do |uiKit|
uiKit.dependency "LTXiOSUtils/Extension/Core"
uiKit.source_files = 'Sources/LTXiOSUtils/Classes/Extension/UIKit/*.swift'
end
extension.subspec 'WebKit' do |webKit|
webKit.dependency "LTXiOSUtils/Extension/Core"
webKit.source_files = 'Sources/LTXiOSUtils/Classes/Extension/WebKit/*.swift'
end
extension.subspec 'Dispatch' do |dispatch|
dispatch.dependency "LTXiOSUtils/Extension/Core"
dispatch.source_files = 'Sources/LTXiOSUtils/Classes/Extension/Dispatch/*.swift'
end
end
# 工具类
s.subspec 'Util' do |util|
util.source_files = 'Sources/LTXiOSUtils/Classes/Util/**/*'
util.subspec 'Log' do |log|
log.source_files = 'Sources/LTXiOSUtils/Classes/Util/Log/*.swift'
end
end
# PropertyWrapper
s.subspec 'PropertyWrapper' do |util|
util.source_files = 'Sources/LTXiOSUtils/Classes/PropertyWrapper/**/*.swift'
end
# UI组件
s.subspec 'Component' do |component|
component.source_files = 'Sources/LTXiOSUtils/Classes/Component/**/*.swift'
component.subspec 'Resources' do |resources|
# LTXiOSUtilsComponent是bundle的名称
resources.resource_bundle = { "LTXiOSUtilsComponent" => "Sources/LTXiOSUtils/Classes/Component/Resources/Resource/*" }
end
end
end
# fastlane release_pod project:"LTXiOSUtils" version:"s.version" desc:"tag desc"
# fastlane release_pod project:"LTXiOSUtils" version:"s.version"
# fastlane release_pod repo:"coder-star" project:"LTXiOSUtils" version:"s.version" desc:"tag desc"