-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
94 lines (79 loc) · 4.01 KB
/
Podfile
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
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
# 下面两行是指明依赖库的来源地址
# source 'https://github.com/CocoaPods/Specs.git'# 使用官方默认地址(默认)
# source 'https://github.com/Artsy/Specs.git'# 使用其他来源地址
# install! 只走一次,多次使用只以最后一个标准执行
# deterministic_uuids 解决与私有库的冲突
# generate_multiple_pod_projects 可以让每个依赖都作为一个单独的项目引入,大大增加了解析速度;cocoapods 1.7 以后支持
# disable_input_output_paths ???
# 需要特别说明的:在 post_install 时,为了一些版本的兼容,需要遍历所有 target,调整一部分库的版本;但是如果开启了 generate_multiple_pod_projects 的话,由于项目结构的变化,installer.pod_targets 就没办法获得所有 pods 引入的 target 了
install! 'cocoapods',:deterministic_uuids=>false,generate_multiple_pod_projects: true,disable_input_output_paths: true
platform :ios, '10.0'
inhibit_all_warnings!
use_frameworks!
# 特别说明:Ruby对大小写敏感,所以方法名不要用大写,否则执行失败
def develop_sdk
pod 'LookinServer', :configurations => ['Debug'] # https://lookin.work/
end
def func
pod 'NTESVerifyCode' # 网易验证码 https://github.com/yidun/NTESVerifyCode https://support.dun.163.com/documents/15588062143475712?docId=150442931089756160
pod 'XYColorOC' # https://github.com/RayJiang16/XYColor 适配iOS 13夜间模式/深色外观(Dark Mode)
# pod 'JobsGlobleDef'
pod 'Masonry'
pod 'ReactiveObjC'
pod 'MJRefresh'
pod 'AFNetworking'
pod 'MJExtension'
pod 'GKPhotoBrowser' # https://github.com/QuintGao/GKPhotoBrowser iOS仿微信、今日头条等图片浏览器
pod 'JXCategoryView'
pod 'JXPagingView/Pager' # https://github.com/pujiaxin33/JXPagingView NO_SMP
pod 'SDWebImage'
pod 'YYImage'
pod 'FLAnimatedImageView+RGWrapper'
pod 'WHToast' # https://github.com/remember17/WHToast 一个轻量级的提示控件,没有任何依赖
pod 'TABAnimated' # https://github.com/tigerAndBull/TABAnimated
pod 'LYEmptyView'
pod 'AFNetworking'
pod 'BRPickerView'
pod 'lottie-ios', '~> 2.5.3'
pod 'GKNavigationBar'
pod 'TXFileOperation'
pod 'SPAlertController'# https://github.com/SPStore/SPAlertController 深度定制AlertController
pod 'JPImageresizerView' # https://github.com/Rogue24/JPImageresizerView 一个专门裁剪图片、GIF、视频的轮子,简单易用,功能丰富(高自由度的参数设定、支持旋转和镜像翻转、蒙版、压缩等),能满足绝大部分裁剪的需求。
pod 'ZFPlayer'
pod 'ZFPlayer/ControlView'
pod 'ZFPlayer/AVPlayer'
pod 'ZFPlayer/ijkplayer'
end
# 基础的公共配置
def cocoPodsConfig
target 'JobsTimerTests' do
inherit! :search_paths # abstract! 指示当前的target是抽象的,因此不会直接链接Xcode target。与其相对应的是 inherit!
# Pods for testing
end
target 'JobsTimerUITests' do
inherit! :search_paths
# Pods for testing
end
# 当我们下载完成,但是还没有安装之时,可以使用hook机制通过pre_install指定要做更改,更改完之后进入安装阶段。 格式如下:
pre_install do |installer|
# 做一些安装之前的更改
end
# 这个是cocoapods的一些配置,官网并没有太详细的说明,一般采取默认就好了,也就是不写.
post_install do |installer|
installer.pods_project.targets.each do |target|
# 当我们安装完成,但是生成的工程还没有写入磁盘之时,我们可以指定要执行的操作。 比如,我们可以在写入磁盘之前,修改一些工程的配置:
puts "!!!! #{target.name}"
end
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
end
target 'JobsTimer' do
# Pods for JobsTimer
develop_sdk
func
cocoPodsConfig # 基础的公共配置
end