Podfile 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. # 下面两行是指明依赖库的来源地址
  2. # CocoaPods官方spec仓库
  3. source 'https://github.com/CocoaPods/Specs.git'
  4. # 广告SDK 源
  5. source 'https://gitee.com/huazi-rongchuang/cxhadsdk-ios-repo.git'
  6. # 清华源
  7. #source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
  8. # Private Speces
  9. #source 'https://github.com/ScareCrowInMountain/RQPrivateSpec.git'
  10. # 说明平台是ios,版本是13.0
  11. platform:ios,'13.0'
  12. # 忽略引入库的所有警告(强迫症者的福音啊)
  13. inhibit_all_warnings!
  14. target 'jiaPei' do
  15. # CocoaPods
  16. # Private
  17. #pod 'RQAPPEventModuleComponent'
  18. # Base
  19. pod 'AFNetworking'
  20. pod 'FCUUID'
  21. pod 'FDFullscreenPopGesture' # 侧滑手势
  22. pod 'FMDB'
  23. pod 'JSONModel'
  24. pod 'Masonry'
  25. pod 'MBProgressHUD'
  26. pod 'MJExtension'
  27. pod 'MJRefresh'
  28. pod 'QMUIKit', '~> 4.8.0' # 腾讯UI控件
  29. pod 'ReactiveObjC'
  30. pod 'RealReachability'
  31. pod 'SDCycleScrollView'
  32. pod 'SDWebImage'
  33. pod 'SDWebImageWebPCoder', '0.8.3'
  34. pod 'WebViewJavascriptBridge'
  35. # YYKit
  36. pod 'YYText' # 富文本
  37. pod 'YYModel' # 字典转模型
  38. pod 'YYWebImage' # 高性能的 iOS 异步图像加载框架。
  39. pod 'YYImage/WebP'
  40. # AD
  41. pod 'ADSuyiSDK','~> 3.9.9.12031' # 主SDK 必选
  42. pod 'ADSuyiSDK/ADSuyiSDKPlatforms/bu' # 穿山甲(头条)
  43. pod 'ADSuyiSDK/ADSuyiSDKPlatforms/gdt' # 优量汇(广点通)
  44. pod 'ADSuyiSDK/ADSuyiSDKPlatforms/ks' # 快手(非内容版本,内容与非内容版本不可同时导入)
  45. pod 'ADSuyiSDK/ADSuyiSDKPlatforms/tianmu' # 天目 #必选
  46. # 客服模块
  47. pod 'QMLineSDK', '~> 4.4.0'
  48. pod 'MLEmojiLabel'
  49. pod 'GKPhotoBrowser'
  50. # BUG
  51. pod 'MLeaksFinder', :git => "https://github.com/Tencent/MLeaksFinder.git"
  52. pod 'FBRetainCycleDetector'
  53. pod 'LookinServer', :configurations => ['Debug']
  54. pod 'Bugly'
  55. # pod 'WKVCDeallocMonitor'
  56. # 视频播放器
  57. pod 'ZFPlayer'
  58. pod 'ZFPlayer/ControlView'
  59. pod 'ZFPlayer/AVPlayer'
  60. pod 'ZFPlayer/ijkplayer'
  61. pod 'GTSDK'
  62. pod 'IDMPhotoBrowser' # 图片浏览器
  63. pod 'IQKeyboardManager' # 键盘管理
  64. pod 'TZImagePickerController'
  65. pod 'BaiduMapKit' # 百度地图
  66. pod 'BMKLocationKit', :inhibit_warnings => true # 百度地图定位sdk
  67. pod 'XHLaunchAd' # 启动广告
  68. pod 'SCLAlertView-Objective-C' # 第三方弹窗
  69. pod 'SAMKeychain' # 钥匙串存储
  70. pod 'DOUAudioStreamer' # 流音乐播放器
  71. pod 'JXPagingView/Pager'
  72. pod 'JXCategoryView'
  73. pod 'CocoaSecurity' # 加密
  74. pod 'CGXVerticalMenuView-OC' # 分类菜单
  75. pod 'HWPanModal' # 弹出方式
  76. pod 'KTVHTTPCache' # 缓存
  77. pod 'WechatOpenSDK'
  78. pod 'OpenSSL-Universal'
  79. pod 'GKPhotoBrowser'
  80. pod 'SGQRCode'
  81. #// 使用https://gitee.com/huazi-rongchuang/cxhadsdk-ios-repo.git源可以快速导入SDK。
  82. # 挑选其中需要导入的平台
  83. #pod 'CXHAdSDK/GDT' (gdt 版本冲突)
  84. pod 'CXHAdSDK/BWT'
  85. pod 'CXHAdSDK/Channel'
  86. pod 'CXHAdSDK/RC'
  87. #pod <友盟+SDK名> 按需复制相应SDK名称代码
  88. pod 'UMCommon' #必须集成
  89. pod 'UMDevice' #必须集成
  90. #依赖库
  91. pod 'UMCCommonLog' #可选,日志插件
  92. # MobShareSDK
  93. # pod 'mob_smssdk', :inhibit_warnings => true # 短信
  94. # 主模块(必须)
  95. # pod 'mob_sharesdk'
  96. # UI模块(非必须,需要用到ShareSDK提供的分享菜单栏和分享编辑页面需要以下1行)
  97. # pod 'mob_sharesdk/ShareSDKUI' #shareSDK的分享UI界面
  98. # pod 'mob_sharesdk/ShareSDKPlatforms/QQ' #shareSDK QQ平台
  99. # pod 'mob_sharesdk/ShareSDKPlatforms/WeChat' #只包含了分享
  100. # pod 'mob_sharesdk/ShareSDKPlatforms/WeChatFull' #(微信sdk带支付的命令,和上面不带支付的不能共存,只能选择一个)
  101. # 导入libwebp失败的话要去本地仓库修改 /Users/zhangrong/.cocoapods/repos/cocoapods/Specs/1/9/2
  102. # "source": {
  103. # "git": "https://chromium.googlesource.com/webm/libwebp",
  104. # "tag": "v1.1.0"
  105. # }
  106. # 把git的值修改为https://github.com/webmproject/libwebp.git
  107. end
  108. post_install do |installer|
  109. ## Fix for XCode 12.5
  110. find_and_replace("Pods/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/FBClassStrongLayout.mm",
  111. "layoutCache[currentClass] = ivars;", "layoutCache[(id<NSCopying>)currentClass] = ivars;")
  112. installer.pods_project.targets.each do |target|
  113. target.build_configurations.each do |config|
  114. config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
  115. #消除TwitterCore警告
  116. xcconfig_path = config.base_configuration_reference.real_path
  117. xcconfig = File.read(xcconfig_path)
  118. xcconfig_mod = xcconfig.gsub(/-framework "TwitterCore"/, "")
  119. File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
  120. if config.name == 'Debug'
  121. config.build_settings['OTHER_SWIFT_FLAGS'] = ['$(inherited)', '-Onone']
  122. config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Owholemodule'
  123. end
  124. if config.name == 'Test'
  125. config.build_settings['OTHER_SWIFT_FLAGS'] = ['$(inherited)', '-Onone']
  126. config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Owholemodule'
  127. end
  128. end
  129. end
  130. installer.pods_project.build_configurations.each do |config|
  131. config.build_settings[‘EXCLUDED_ARCHS[sdk=iphonesimulator*]’] = ‘arm64’
  132. end
  133. end
  134. def find_and_replace(dir, findstr, replacestr)
  135. Dir[dir].each do |name|
  136. text = File.read(name)
  137. replace = text.gsub(findstr,replacestr)
  138. if text != replace
  139. puts "Fix: " + name
  140. File.open(name, "w") { |file| file.puts replace }
  141. STDOUT.flush
  142. end
  143. end
  144. Dir[dir + '*/'].each(&method(:find_and_replace))
  145. end
  146. #删除WebViewJavascriptBridge中的WebViewJavascriptBridge.h和WebViewJavascriptBridge.m文件
  147. pre_install do |installer|
  148. dir_web = File.join(installer.sandbox.pod_dir('WebViewJavascriptBridge'), 'WebViewJavascriptBridge')
  149. Dir.foreach(dir_web) {|x|
  150. real_path = File.join(dir_web, x)
  151. if (!File.directory?(real_path) && File.exist?(real_path))
  152. if(x == 'WebViewJavascriptBridge.h' || x == 'WebViewJavascriptBridge.m')
  153. File.delete(real_path)
  154. end
  155. end
  156. }
  157. end