-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTestAppModule.podspec
113 lines (100 loc) · 3.33 KB
/
TestAppModule.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
Pod::Spec.new do |s|
s.name = "TestAppModule"
s.version = "1.0.0"
s.summary = "A short description of TestAppModule"
s.description = "Gray's TestAppModule demo"
s.homepage = "https://github.com/Suzhibin/TestAppModule"
# s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'suzhibin' => '[email protected]' }
s.source = { :git => 'https://github.com/Suzhibin/TestAppModule.git', :tag => s.version.to_s }
s.ios.deployment_target = '9.0'
#基础组件
#下面 可以使用 #bm.dependency 直接集成 ,也可以subspec
s.subspec 'TestBasis' do |bm|
# BasisTool
bm.subspec 'BasisTool' do |ba|
ba.source_files = 'TestBasis/TestBasis/Classes/BasisTool/**/*.{h,m}'
ba.resource_bundles = {
'BasisTool' => [
'TestBasis/TestBasis/Classes/BasisTool/**/*.{storyboard,xcassets,xib,plist}'
]
}
ba.ios.framework = 'UIKit'
end
# RequestTool
bm.subspec 'RequestTool' do |rq|
rq.source_files = 'TestBasis/TestBasis/Classes/RequestTool/**/*.{h,m}'
rq.resource_bundles = {
'RequestTool' => [
'TestBasis/TestBasis/Classes/RequestTool/**/*.{storyboard,xcassets,xib,plist}'
]
}
rq.ios.framework = 'UIKit'
end
# Utility
bm.subspec 'Utility' do |ut|
ut.source_files = 'TestBasis/TestBasis/Classes/Utility/**/*.{h,m}'
ut.resource_bundles = {
'Utility' => [
'TestBasis/TestBasis/Classes/Utility/**/*.{storyboard,xcassets,xib,plist}'
]
}
ut.ios.framework = 'UIKit'
ut.dependency 'CTMediator'
end
bm.source_files = 'TestBasis/TestBasis/Classes/**/*.{h,m,swift}'
bm.resource_bundles = {
'TestBasis' => [
'TestBasis/TestBasis/Classes/**/*.{storyboard,xcassets,xib,json}'
]
}
#下面 注释的 可以替换所有subspec
#bm.dependency 'CTMediator'
#
#bm.ios.framework = 'UIKit'
end
#TestA组件
s.subspec 'TestA' do |a|
a.source_files = 'TestA/TestA/Classes/**/*.{h,m,swift}'
a.resource_bundles = {
'TestA' => [
'TestA/TestA/Classes/**/*.{storyboard,xcassets,xib,json}'
]
}
a.prefix_header_file = 'TestA/TestA/Classes/TestA.pch'
a.dependency 'TestAppModule/TestBasis'
a.dependency 'TestAppModule/WBRenZHeng'
a.ios.framework = 'UIKit'
end
#TestB组件
s.subspec 'TestB' do |b|
b.source_files = 'TestB/TestB/Classes/**/*.{h,m}'
b.resource_bundles = {
'TestB' => [
'TestB/TestB/Classes/**/*.{storyboard,xcassets,xib,json}'
]
}
#b.prefix_header_file = 'TestB/TestB/Classes/TestB.pch'
b.dependency 'TestAppModule/TestBasis'
b.ios.framework = 'UIKit'
end
#TestC组件
s.subspec 'TestC' do |c|
c.source_files = 'TestC/TestC/Classes/**/*.{h,m}'
c.resource_bundles = {
'TestC' => [
'TestC/TestC/Classes/**/*.{storyboard,xcassets,xib,json}'
]
}
#c.prefix_header_file = 'TestC/TestC/Classes/TestC.pch'
c.dependency 'TestAppModule/TestBasis'
c.ios.framework = 'UIKit'
end
#腾讯认证组件组件
s.subspec 'WBRenZHeng' do |w|
w.ios.vendored_frameworks = 'WBRenZHeng/WBRenZHeng/WBCloudReflectionFaceVerify_framework/**/*.{framework}'
w.frameworks = ["UIKit", "AVFoundation", "MobileCoreServices", "CoreVideo", "Accelerate", "Security", "SystemConfiguration", "CoreMedia", "AudioToolbox", "CoreTelephony", "ImageIO","WebKit"]
w.libraries = ["c++","z"]
w.ios.resource ='WBCloudReflectionFaceVerify_framework/WBCloudReflectionFaceVerify_framework/WBCloudReflectionFaceVerify_framework/Resources/*.bundle'
end
end