# 下面两行是指明依赖库的来源地址 # CocoaPods官方spec仓库 source 'https://github.com/CocoaPods/Specs.git' # 清华源 #source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git' # Private Speces source 'https://github.com/ScareCrowInMountain/RQPrivateSpec.git' # 说明平台是ios,版本是11.0 platform:ios,'11.0' # 忽略引入库的所有警告(强迫症者的福音啊) inhibit_all_warnings! target 'SDJK' do # AD pod 'ADSuyiSDK', '~> 3.7.0.12221' # 主SDK # 必选 # pod 'ADSuyiLocationManagerGPS' # 可选定位库 pod 'ADSuyiSDK/ADSuyiSDKPlatforms/bu' pod 'ADSuyiSDK/ADSuyiSDKPlatforms/gdt' pod 'ADSuyiSDK/ADSuyiSDKPlatforms/ks' pod 'ADSuyiSDK/ADSuyiSDKPlatforms/tianmu' # CocoaPods pod 'AFNetworking' # 网络请求 pod 'Bugly' # 奔溃错误收集 pod 'CGXVerticalMenuView-OC' # 分类菜单 pod 'CocoaSecurity' # 加密 pod 'Colours' # 颜色分类 # pod 'CWLateralSlide' # 侧面弹窗 pod 'DACircularProgress' # 环形进度条 pod 'DOUAudioStreamer' # 流音乐播放器 pod 'DouyinOpenSDK', '~> 4.0.0' # 抖音 pod 'FDFullscreenPopGesture' # 侧滑手势 pod 'FLAnimatedImage' # 动态图 pod 'FMDB' # 数据库 pod 'GKPhotoBrowser' pod 'GTSDK' # 推送(个推) pod 'HWPanModal' # 弹出方式 pod 'IDMPhotoBrowser' # 图片浏览器 pod 'IQKeyboardManager' # 键盘管理 pod 'JDStatusBarNotification' # 状态栏通知 # pod 'JMRoundedCorner' # 圆角 pod 'JPFPSStatus' # FPS检测 pod 'JSONModel' # 字典转模型 pod 'JXCategoryView' pod 'JXPagingView/Pager', '~> 2.1.1' pod 'KTVHTTPCache' # 缓存 pod 'LEEAlert' pod 'LookinServer', :configurations => ['Debug'] # UI调试 pod 'Masonry' # AutoLayout pod 'MBProgressHUD' pod 'MJRefresh' # 刷新 pod 'MJExtension' # 字典转模型 该项目使用YYModel pod 'OpenSSL-Universal' pod 'pop' # pop动画 pod 'QMUIKit' pod 'ReactiveObjC' # 消息链 pod 'RealReachability' # 网络状态 pod 'SAMKeychain' # 钥匙串存储 pod 'SCLAlertView-Objective-C' # 第三方弹窗 pod 'SDCycleScrollView' # 轮播图 # pod 'SDWebImage' # 图片加载 # pod 'SDWebImageWebPCoder' # 网络图片加载 # pod 'SGQRCode' # 二维码 # pod 'SVProgressHUD' # HUD pod 'TZImagePickerController' # 图片选择器 pod 'WebViewJavascriptBridge' # JS交互 pod 'WechatOpenSDK' # 微信 # pod 'YNPageViewController' # 第三方嵌套 # YYKit pod 'YYModel' # 字典转模型 pod 'YYText' # 富文本 pod 'YYWebImage' # 高性能的 iOS 异步图像加载框架。 pod 'YYImage/WebP' pod 'ZFPlayer' # 视频播放器 pod 'ZFPlayer/ControlView' pod 'ZFPlayer/AVPlayer' pod 'ZFPlayer/ijkplayer' pod 'ZYCornerRadius' # View的圆角处理 防止离屏渲染 # 导入libwebp失败的话要去本地仓库修改 /Users/zhangrong/.cocoapods/repos/cocoapods/Specs/1/9/2 # "source": { # "git": "https://chromium.googlesource.com/webm/libwebp", # "tag": "v1.1.0" # } # 把git的值修改为https://github.com/webmproject/libwebp.git end # 设置每个第三方库的支持版本在iOS11.0以上 post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' end end end target 'NotificationService' do platform:ios,'11.0' pod 'GTExtensionSDK' end #删除WebViewJavascriptBridge中的WebViewJavascriptBridge.h和WebViewJavascriptBridge.m文件 pre_install do |installer| dir_web = File.join(installer.sandbox.pod_dir('WebViewJavascriptBridge'), 'WebViewJavascriptBridge') Dir.foreach(dir_web) {|x| real_path = File.join(dir_web, x) if (!File.directory?(real_path) && File.exists?(real_path)) if(x == 'WebViewJavascriptBridge.h' || x == 'WebViewJavascriptBridge.m') File.delete(real_path) end end } end