This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
RXExtenstion.podspec
148 lines (113 loc) · 5.75 KB
/
RXExtenstion.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#
# iOS Project basic framework
#
# Notice: different subspec can be imported as needed
#
Pod::Spec.new do |s|
s.name = "RXExtenstion"
s.version = "0.0.0.2"
s.summary = "iOS Project basic framework"
s.description = <<-DESC
iOS 项目基本框架(label自适应高度、菜单功能、地址选择器、日期时间选择器、自动生成假数据......)
/
iOS Project basic framework (Label adaptive height, menu function,
address selector, date time selector,
automatic generation of false data, etc.).
-----------------------------------------------------------------------------
- Subspecs:
- RXComment (通用的)[包括:UIColor(颜色处理)、random(随机假数据)]
- RXUUID (实现设备唯一标识)
- RXTranslation (简单转换 --- 还在构思中...)
- RXGradient (颜色渐变)
- RXBlockTextField (功能输入框)
- RXPickerView (选择滚动器)
- RXAlertView (系统Alert封装)
- RXSwizzle (runtime Swizzle)
-----------------------------------------------------------------------------
Example 1: ( Notice : import all subspecs )
pod 'RXExtenstion', :subspecs => [
'RXUUID',
'RXTranslation',
'RXGradient',
'RXBlockTextField',
'RXPickerView',
'RXAlertView',
'RXSwizzle'
]
-----------------------------------------------------------------------------
Example 2: ( Notice : different subspec can be imported as needed )
pod 'RXExtenstion', '0.0.0.2', :subspecs => [
'RXUUID',
'RXGradient',
'RXBlockTextField',
'RXPickerView'
]
DESC
s.homepage = "https://github.com/srxboys/RXExtenstion.git"
s.license = "MIT"
s.author = { "srxboys" => "[email protected]" }
s.platform = :ios, "8.0"
s.source = { :git => "https://github.com/srxboys/RXExtenstion.git", :tag => "#{s.version}" }
s.requires_arc = true
s.default_subspec = "RXComment"
s.subspec "RXComment" do |ss|
ss.source_files = "RXExtenstion/RXExtenstion/{UIColor/*,random/*,*}.{h,m}"
ss.header_dir = "RXComment"
end
s.subspec "RXUUID" do |ss|
ss.source_files = "RXExtenstion/RXExtenstion/RXUUID/**/*.{h,m}"
ss.header_dir = "RXUUID"
ss.framework = "Security"
end
s.subspec "RXTranslation" do |ss|
ss.source_files = "RXExtenstion/RXExtenstion/Translation/**/*.{h,m}"
ss.header_dir = "RXTranslation"
ss.framework = "QuartzCore"
end
s.subspec "RXGradient" do |ss|
ss.source_files = "RXExtenstion/RXExtenstion/Gradient/**/*.{h,m}"
ss.header_dir = "RXGradient"
end
s.subspec "RXBlockTextField" do |ss|
ss.source_files = "RXExtenstion/RXExtenstion/RXBlockTextField/**/*.{h,m}"
ss.header_dir = "RXBlockTextField"
end
s.subspec "RXPickerView" do |ss|
ss.source_files = "RXExtenstion/RXExtenstion/RXDatePicker/**/RXPickerView.{h,m}"
ss.header_dir = "RXPickerView"
end
s.subspec "RXAlertView" do |ss|
ss.source_files = "RXExtenstion/RXExtenstion/RXAlert/**/*.{h,m}"
ss.header_dir = "RXAlertView"
end
s.subspec "RXSwizzle" do |ss|
ss.source_files = "RXExtenstion/RXExtenstion/runtime/**/NSObject+RXSwizzle.{h,m}"
ss.header_dir = "RXSwizzle"
end
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# A list of resources included with the Pod. These are copied into the
# target bundle with a build phase script. Anything else will be cleaned.
# You can preserve files from being cleaned, please don't preserve
# non-essential files like tests, examples and documentation.
#
# s.resource = "icon.png"
# s.resources = "Resources/*.png"
# s.preserve_paths = "FilesToSave", "MoreFilesToSave"
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Link your library with frameworks, or libraries. Libraries do not include
# the lib prefix of their name.
#
# s.framework = "SomeFramework"
# s.frameworks = "SomeFramework", "AnotherFramework"
# s.library = "iconv"
# s.libraries = "iconv", "xml2"
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# If your library depends on compiler flags you can set them in the xcconfig hash
# where they will only apply to your library. If you depend on other Podspecs
# you can include multiple dependencies to ensure it works.
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
# s.dependency "JSONKit", "~> 1.4"
end