-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSwiftUtilityFramework.podspec
executable file
·66 lines (57 loc) · 2.43 KB
/
SwiftUtilityFramework.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
Pod::Spec.new do |s|
s.name = "SwiftUtilityFramework"
s.version = "0.0.2"
s.summary = "swift 开发框架,封装常用的数据类型、方法、算法等。"
s.homepage = "https://github.com/pmtao/SwiftUtilityFramework"
s.license = "MIT"
s.authors = { 'Meler Paine' => '[email protected]'}
s.platform = :ios, "10.0"
s.swift_version = '4.2'
s.source = { :git => 'https://github.com/pmtao/SwiftUtilityFramework.git', :tag => s.version }
s.source_files = 'SwiftUtilityFramework/**/*.{h,m,swift}'
s.resources = 'SwiftUtilityFramework/**/*.{png,xib,storyboard}'
s.requires_arc = true
s.preserve_paths = 'SwiftUtilityFramework/**/*'
s.pod_target_xcconfig = {
#以下为本地开发时打开
#'SWIFT_INCLUDE_PATHS' => '/Users/pmtao/Tech/Repositories/Github/SwiftUtilityFramework/SwiftUtilityFramework/CommonCrypto'
#以下为发布时打开
'SWIFT_INCLUDE_PATHS' => '$(SRCROOT)/SwiftUtilityFramework/SwiftUtilityFramework/CommonCrypto'
}
s.default_subspec = 'SwiftUtilityFramework'
s.subspec 'SwiftUtilityFramework' do |suf|
suf.source_files = 'SwiftUtilityFramework/**/*.{h,m,swift}'
end
# Foundation 子模块
s.subspec 'Foundation' do |foundation|
foundation.source_files = 'SwiftUtilityFramework/Foundation/**/*.{h,m,swift}'
end
# UIKit 子模块
s.subspec 'UIKit' do |uiKit|
uiKit.source_files = 'SwiftUtilityFramework/UIKit/**/*.{h,m,swift}'
uiKit.resources = 'SwiftUtilityFramework/UIKit/**/*.{png,xib,storyboard}'
end
# Polyfill 子模块
s.subspec 'Polyfill' do |polyfill|
polyfill.source_files = 'SwiftUtilityFramework/Polyfill/**/*.{h,m,swift}'
end
# Storage 子模块
s.subspec 'Storage' do |storage|
storage.source_files = 'SwiftUtilityFramework/Storage/**/*.{h,m,swift}'
storage.dependency 'SwiftUtilityFramework/Foundation'
end
# Network 子模块
s.subspec 'Network' do |network|
network.source_files = 'SwiftUtilityFramework/Network/**/*.{h,m,swift}'
network.dependency 'SwiftUtilityFramework/Foundation'
end
# ImageProcess 子模块
s.subspec 'ImageProcess' do |imageProcess|
imageProcess.source_files = 'SwiftUtilityFramework/ImageProcess/**/*.{h,m,swift}'
end
# Algorithm 子模块
s.subspec 'Algorithm' do |algorithm|
algorithm.source_files = 'SwiftUtilityFramework/Algorithm/**/*.{h,m,swift}'
algorithm.dependency 'SwiftUtilityFramework/Foundation'
end
end