forked from agiapp/BRPickerView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBRPickerView.podspec
executable file
·62 lines (49 loc) · 2.04 KB
/
BRPickerView.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
Pod::Spec.new do |s|
# 框架的名称
s.name = "BRPickerView"
# 框架的版本号
s.version = "2.7.6"
# 框架的简单介绍
s.summary = "A custom picker view for iOS."
# 框架的详细描述(详细介绍,要比简介长)
s.description = <<-DESC
A custom picker view for iOS, Include "日期选择器,时间选择器,地址选择器,自定义字符串选择器,支持自定义样式,适配深色模式", Support the Objective - C language.
DESC
# 框架的主页
s.homepage = "https://github.com/91renb/BRPickerView"
# 证书类型
s.license = { :type => "MIT", :file => "LICENSE" }
# 作者
s.author = { "任波" => "[email protected]" }
# 社交网址
s.social_media_url = 'https://www.irenb.com'
# 框架支持的平台和版本
s.platform = :ios, "8.0"
# GitHub下载地址和版本
s.source = { :git => "https://github.com/91renb/BRPickerView.git", :tag => s.version.to_s }
s.public_header_files = 'BRPickerView/BRPickerView.h'
# 本地框架源文件的位置(包含所有文件)
#s.source_files = "BRPickerView/**/*.{h,m}"
# 一级目录(pod库中根目录所含文件)
s.source_files = "BRPickerView/BRPickerView.h"
# 二级目录(根目录是s,使用s.subspec设置子目录,这里设置子目录为ss)
s.subspec 'Base' do |ss|
ss.source_files = 'BRPickerView/Base/*.{h,m}'
# 框架包含的资源包
ss.resources = 'BRPickerView/Base/BRPickerView.bundle'
end
s.subspec 'DatePickerView' do |ss|
ss.dependency 'BRPickerView/Base'
ss.source_files = 'BRPickerView/DatePickerView/*.{h,m}'
end
s.subspec 'AddressPickerView' do |ss|
ss.dependency 'BRPickerView/Base'
ss.source_files = 'BRPickerView/AddressPickerView/*.{h,m}'
end
s.subspec 'StringPickerView' do |ss|
ss.dependency 'BRPickerView/Base'
ss.source_files = 'BRPickerView/StringPickerView/*.{h,m}'
end
# 框架要求ARC环境下使用
s.requires_arc = true
end