forked from didi/DoKit
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDoraemonKit.podspec
122 lines (107 loc) · 4.04 KB
/
DoraemonKit.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
114
115
116
117
118
119
120
121
122
# Be sure to run `pod lib lint DoraemonKit.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 = 'DoraemonKit'
s.version = '3.1.2'
s.summary = 'iOS 各式各样的工具集合'
# 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
iOS各式各样的工具集合
DESC
s.homepage = 'https://github.com/${USER_NAME}/${POD_NAME}'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' }
s.author = { 'OrangeLab' => '[email protected]' }
s.source = { :git => 'https://github.com/didi/DoraemonKit.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.ios.deployment_target = '9.0'
s.default_subspec = 'Core'
s.subspec 'Hook' do |ss|
ss.source_files = 'iOS/DoKit/Classes/**/*.{h,c}'
ss.compiler_flags = [
'-Wall',
'-Wextra',
'-Wpedantic',
'-Werror',
'-Wno-zero-length-array',
'-fvisibility=hidden'
]
end
s.subspec 'Core' do |ss|
ss.source_files = 'iOS/DoraemonKit/Src/Core/**/*.{h,m,c,mm}'
ss.resource_bundles = {
'DoraemonKit' => 'iOS/DoraemonKit/Resource/**/*'
}
ss.dependency 'GCDWebServer'
ss.dependency 'GCDWebServer/WebUploader'
ss.dependency 'GCDWebServer/WebDAV'
ss.dependency 'FMDB'
ss.dependency 'AFNetworking'
end
s.subspec 'WithLogger' do |ss|
ss.source_files = 'iOS/DoraemonKit/Src/Logger/**/*{.h,.m}'
ss.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) DoraemonWithLogger'
}
ss.dependency 'DoraemonKit/Core'
ss.dependency 'CocoaLumberjack'
end
s.subspec 'WithGPS' do |ss|
ss.source_files = 'iOS/DoraemonKit/Src/GPS/**/*{.h,.m}'
ss.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) DoraemonWithGPS'
}
ss.dependency 'DoraemonKit/Core'
end
s.subspec 'WithLoad' do |ss|
ss.source_files = 'iOS/DoraemonKit/Src/MethodUseTime/**/*{.h,.m}'
ss.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) DoraemonWithLoad'
}
ss.dependency 'DoraemonKit/Core'
ss.vendored_frameworks = 'iOS/DoraemonKit/Framework/*.framework'
end
s.subspec 'WithWeex' do |ss|
ss.source_files = 'iOS/DoraemonKit/Src/Weex/**/*{.h,.m}'
ss.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) DoraemonWithWeex'
}
ss.dependency 'DoraemonKit/Core'
ss.dependency 'WeexSDK'
ss.dependency 'WXDevtool'
end
s.subspec 'WithDatabase' do |ss|
ss.source_files = 'iOS/DoraemonKit/Src/Database/**/*{.h,.m}'
ss.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) DoraemonWithDatabase'
}
ss.dependency 'DoraemonKit/Core'
ss.dependency 'YYDebugDatabase'
end
s.subspec 'WithMLeaksFinder' do |ss|
ss.source_files = 'iOS/DoraemonKit/Src/MLeaksFinder/**/*{.h,.m}'
ss.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) DoraemonWithMLeaksFinder'
}
ss.dependency 'DoraemonKit/Core'
ss.dependency 'FBRetainCycleDetector'
end
s.subspec 'WithMultiControl' do |ss|
ss.source_files = 'iOS/DoraemonKit/Src/MultiControl/**/*{.h,.m}'
ss.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) DoraemonWithMultiControl'
}
ss.dependency 'DoraemonKit/Core'
ss.dependency 'CocoaLumberjack'
ss.dependency 'CocoaHTTPServer'
ss.dependency 'SocketRocket'
end
end