Podfile 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. # MobShareSDK
  81. # pod 'mob_smssdk', :inhibit_warnings => true # 短信
  82. # 主模块(必须)
  83. # pod 'mob_sharesdk'
  84. # UI模块(非必须,需要用到ShareSDK提供的分享菜单栏和分享编辑页面需要以下1行)
  85. # pod 'mob_sharesdk/ShareSDKUI' #shareSDK的分享UI界面
  86. # pod 'mob_sharesdk/ShareSDKPlatforms/QQ' #shareSDK QQ平台
  87. # pod 'mob_sharesdk/ShareSDKPlatforms/WeChat' #只包含了分享
  88. # pod 'mob_sharesdk/ShareSDKPlatforms/WeChatFull' #(微信sdk带支付的命令,和上面不带支付的不能共存,只能选择一个)
  89. # 导入libwebp失败的话要去本地仓库修改 /Users/zhangrong/.cocoapods/repos/cocoapods/Specs/1/9/2
  90. # "source": {
  91. # "git": "https://chromium.googlesource.com/webm/libwebp",
  92. # "tag": "v1.1.0"
  93. # }
  94. # 把git的值修改为https://github.com/webmproject/libwebp.git
  95. end
  96. post_install do |installer|
  97. ## Fix for XCode 12.5
  98. find_and_replace("Pods/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/FBClassStrongLayout.mm",
  99. "layoutCache[currentClass] = ivars;", "layoutCache[(id<NSCopying>)currentClass] = ivars;")
  100. installer.pods_project.targets.each do |target|
  101. target.build_configurations.each do |config|
  102. config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
  103. #消除TwitterCore警告
  104. xcconfig_path = config.base_configuration_reference.real_path
  105. xcconfig = File.read(xcconfig_path)
  106. xcconfig_mod = xcconfig.gsub(/-framework "TwitterCore"/, "")
  107. File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
  108. if config.name == 'Debug'
  109. config.build_settings['OTHER_SWIFT_FLAGS'] = ['$(inherited)', '-Onone']
  110. config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Owholemodule'
  111. end
  112. if config.name == 'Test'
  113. config.build_settings['OTHER_SWIFT_FLAGS'] = ['$(inherited)', '-Onone']
  114. config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Owholemodule'
  115. end
  116. end
  117. end
  118. installer.pods_project.build_configurations.each do |config|
  119. config.build_settings[‘EXCLUDED_ARCHS[sdk=iphonesimulator*]’] = ‘arm64’
  120. end
  121. end
  122. def find_and_replace(dir, findstr, replacestr)
  123. Dir[dir].each do |name|
  124. text = File.read(name)
  125. replace = text.gsub(findstr,replacestr)
  126. if text != replace
  127. puts "Fix: " + name
  128. File.open(name, "w") { |file| file.puts replace }
  129. STDOUT.flush
  130. end
  131. end
  132. Dir[dir + '*/'].each(&method(:find_and_replace))
  133. end
  134. #删除WebViewJavascriptBridge中的WebViewJavascriptBridge.h和WebViewJavascriptBridge.m文件
  135. pre_install do |installer|
  136. dir_web = File.join(installer.sandbox.pod_dir('WebViewJavascriptBridge'), 'WebViewJavascriptBridge')
  137. Dir.foreach(dir_web) {|x|
  138. real_path = File.join(dir_web, x)
  139. if (!File.directory?(real_path) && File.exists?(real_path))
  140. if(x == 'WebViewJavascriptBridge.h' || x == 'WebViewJavascriptBridge.m')
  141. File.delete(real_path)
  142. end
  143. end
  144. }
  145. end