Podfile 6.1 KB

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