-
Notifications
You must be signed in to change notification settings - Fork 9
/
AxcBedrock.podspec.bak
144 lines (122 loc) · 4.66 KB
/
AxcBedrock.podspec.bak
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
143
144
#
# Be sure to run `pod lib lint AxcBedrock.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 = 'AxcBedrock'
s.version = '1.1.4' # Auto Version
s.summary = 'Axc的基岩工具库'
s.description =
<<-DESC
基岩工具库,将坑洼不平的各种苹果开发平台的Api调用统一,帮助iOS开发并快速过渡到任意平台开发,并能迅速操作基础Api
目前支持iOS与MacOS双平台运作,Api相似度99%,可以平滑从iOS过渡到MacOS
DESC
s.homepage = 'https://github.com/axclogo/AxcBedrock'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Axclogo' => '[email protected]' }
s.source = { :git => 'https://github.com/axclogo/AxcBedrock-Swift.git', :tag => s.version.to_s }
s.swift_version = '5.0'
s.requires_arc = true
s.pod_target_xcconfig = {
'CODE_SIGNING_ALLOWED' => 'NO'
}
# 设置子库 ===>
# 文件类型
fileType = "{swift,h,m,mm,cpp}"
# 基础路径
baseFilePath = "AxcBedrock/Classes"
# 核心文件(不可或缺)
core_files = [
"#{baseFilePath}/Core/**/*.#{fileType}",
"#{baseFilePath}/Utils/**/*.#{fileType}",
"#{baseFilePath}/Enum/**/*.#{fileType}",
"#{baseFilePath}/Extension/SwiftLib/**/*.#{fileType}",
"#{baseFilePath}/Extension/Foundation/**/*.#{fileType}"
]
# 属性包装器文件
wrapper_files = "#{baseFilePath}/Wrapper/**/*.#{fileType}"
# 跨平台文件
crossPlatform_files = "#{baseFilePath}/Extension/CrossPlatform/**/*.#{fileType}"
# XCTest单元测试文件
# xcTest_files = "#{baseFilePath}/Extension/XCTest/**/*.#{fileType}"
# 其他库文件路径
# 因为拆分更细化的子库属实没必要,如果使用子库的话上传至Repo还需要进一步校验
# 于是改为文件路径导入方式
# _files = "#{baseFilePath}/Extension/xxxx/**/*.#{fileType}"
avFoundation_files = "#{baseFilePath}/Extension/AVFoundation/**/*.#{fileType}"
coreFoundation_files = "#{baseFilePath}/Extension/CoreFoundation/**/*.#{fileType}"
coreGraphics_files = "#{baseFilePath}/Extension/CoreGraphics/**/*.#{fileType}"
coreImage_files = "#{baseFilePath}/Extension/CoreImage/**/*.#{fileType}"
coreLocation_files = "#{baseFilePath}/Extension/CoreLocation/**/*.#{fileType}"
coreMedia_files = "#{baseFilePath}/Extension/CoreMedia/**/*.#{fileType}"
coreText_files = "#{baseFilePath}/Extension/CoreText/**/*.#{fileType}"
coreVideo_files = "#{baseFilePath}/Extension/CoreVideo/**/*.#{fileType}"
localAuthentication_files = "#{baseFilePath}/Extension/LocalAuthentication/**/*.#{fileType}"
mapKit_files = "#{baseFilePath}/Extension/MapKit/**/*.#{fileType}"
quartzCore_files = "#{baseFilePath}/Extension/QuartzCore/**/*.#{fileType}"
webKit_files = "#{baseFilePath}/Extension/WebKit/**/*.#{fileType}"
#iOS平台
s.ios.deployment_target = '10.0'
# iOS平台文件
ios_source_files =
core_files +
[
"#{baseFilePath}/Extension/UIKit/**/*.#{fileType}", # 主要文件
wrapper_files, # 属性包装器
crossPlatform_files, # 跨平台
avFoundation_files,
coreFoundation_files,
coreGraphics_files,
coreImage_files,
coreLocation_files,
coreMedia_files,
coreText_files,
coreVideo_files,
localAuthentication_files,
mapKit_files,
quartzCore_files,
webKit_files
]
s.ios.source_files = ios_source_files
# macOS平台
s.osx.deployment_target = '11.0'
# macOS平台文件
osx_source_files =
core_files +
[
"#{baseFilePath}/Extension/AppKit/**/*.#{fileType}", # 主要文件
wrapper_files, # 属性包装器
crossPlatform_files, # 跨平台
coreFoundation_files,
coreGraphics_files,
coreImage_files,
coreLocation_files,
coreMedia_files,
coreText_files,
coreVideo_files,
quartzCore_files,
webKit_files
]
s.osx.source_files = osx_source_files
# Core主模块
s.subspec 'Core' do |c|
c.source_files = core_files
end
# iOS平台
s.subspec 'iOS' do |c|
c.ios.source_files = ios_source_files
c.dependency 'AxcBedrock/Core'
c.pod_target_xcconfig = {
}
end
# MacOS平台
s.subspec 'macOS' do |c|
c.osx.source_files = osx_source_files
c.dependency 'AxcBedrock/Core'
c.pod_target_xcconfig = {
}
end
end