Podfile 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. # Uncomment the next line to define a global platform for your project
  2. use_frameworks!
  3. platform :ios, '10.0'
  4. source 'https://github.com/CocoaPods/Specs.git'
  5. source 'https://git.yishihui.com/iOS/BFSpecs.git'
  6. #source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
  7. target 'Introduce' do
  8. #富文本库
  9. pod 'WoodPeckeriOS', :configurations => ['Debug']
  10. pod 'TYAttributedLabel','2.6.9'
  11. pod 'UMCommon', '7.3.5'
  12. pod 'UMDevice', '2.1.0'
  13. pod 'UMCSecurityPlugins', '1.0.6'
  14. pod 'UMAPM', '1.5.5'
  15. pod 'Bugly', '2.5.91'
  16. channel = "Jenkins"
  17. case channel
  18. when "AppStore"
  19. pod 'BFCommonKit', '1.5.9'
  20. pod 'BFNetRequestKit', '1.0.3'
  21. pod 'BFUIKit', '0.1.5'
  22. pod 'BFMaterialKit', '0.2.7'
  23. pod 'BFLogger', '0.1.0'
  24. pod 'BFMediaKit', '0.0.2'
  25. pod 'BFRecordScreenKit', '1.0.0'
  26. when "Jenkins"
  27. pod 'BFCommonKit', :git => 'https://git.yishihui.com/iOS/BFCommonKit.git'
  28. pod 'BFNetRequestKit', :git => 'https://git.yishihui.com/iOS/BFNetRequestKit.git'
  29. pod 'BFUIKit', :git => 'https://git.yishihui.com/iOS/BFUIKit.git'
  30. pod 'BFMaterialKit', :git => 'https://git.yishihui.com/iOS/BFMaterialKit.git'
  31. pod 'BFLogger', :git => 'https://git.yishihui.com/iOS/BFLogger.git'
  32. pod 'BFMediaKit', :git => 'https://git.yishihui.com/iOS/BFMediaKit.git',:branch => 'dev'
  33. pod 'BFRecordScreenKit', :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git',:branch => 'dev'
  34. pod 'BFAnalyzeKit', :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git'
  35. pod "BFFFmpeglib", :git => 'https://git.yishihui.com/iOS/BFFFmpeglib.git'
  36. pod "BFUploadKit", :git => 'https://git.yishihui.com/iOS/BFUploadKit.git'
  37. when "hzq"
  38. pod 'BFCommonKit', :path => '../BFCommonKit/'
  39. pod 'BFNetRequestKit', :path => '../BFNetRequestKit/'
  40. pod 'BFUIKit', :path => '../BFUIKit/'
  41. pod 'BFMaterialKit', :path => '../BFMaterialKit/'
  42. pod 'BFLogger', :path => '../BFLogger/'
  43. pod 'BFMediaKit', :path => '../BFMediaKit/'
  44. pod 'BFRecordScreenKit', :path => '../BFRecordScreenKit/'
  45. pod 'BFAnalyzeKit', :path => '../BFAnalyzeKit/'
  46. pod 'BFFFmpeglib', :path => '../BFFFmpeglib/'
  47. pod 'BFUploadKit', :path => '../BFUploadKit/'
  48. # pod 'MLeaksFinder'
  49. when "test"
  50. pod 'BFCommonKit', :path => '../../BFCommonKit/Trunk'
  51. pod 'BFNetRequestKit', :path => '../../BFNetRequestKit/Trunk'
  52. pod 'BFUIKit', :path => '../../BFUIKit/Trunk'
  53. pod 'BFMaterialKit', :path => '../../BFMaterialKit/Trunk'
  54. pod 'BFLogger', :path => '../../BFLogger/Trunk'
  55. pod 'BFMediaKit', :path => '../../BFMediaKit/Trunk'
  56. pod 'BFRecordScreenKit', :path => '../../BFRecordScreenKit/Trunk'
  57. pod 'BFAnalyzeKit', :path => '../../BFAnalyzeKit/Trunk'
  58. else
  59. pod "BFCommonKit", :git => 'https://git.yishihui.com/iOS/BFCommonKit.git', :tag => '1.5.9'
  60. pod "BFNetRequestKit", :git => 'https://git.yishihui.com/iOS/BFNetRequestKit.git', :tag => '1.0.3'
  61. pod "BFUIKit", :git => 'https://git.yishihui.com/iOS/BFUIKit.git', :tag => '0.1.5'
  62. pod "BFMaterialKit", :git => 'https://git.yishihui.com/iOS/BFMaterialKit.git', :tag => '0.2.7'
  63. pod "BFLogger", :git => 'https://git.yishihui.com/iOS/BFLogger.git', :tag => '0.1.0'
  64. pod "BFMediaKit", :git => 'https://git.yishihui.com/iOS/BFMediaKit.git', :tag => '0.0.2'
  65. pod "BFRecordScreenKit", :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git', :tag => '1.0.0'
  66. pod "BFAnalyzeKit", :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git', :tag => '0.0.1'
  67. end
  68. post_install do |installer|
  69. remove_swift_ui("./Pods/Kingfisher/Sources/General/KFOptionsSetter.swift")
  70. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImage.swift")
  71. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/ImageBinder.swift")
  72. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImageOptions.swift")
  73. remove_swift_ui_realm("./Pods/RealmSwift/RealmSwift/SwiftUI.swift")
  74. # remove_retaincyle("./Pods/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/FBClassStrongLayout.mm")
  75. installer.pods_project.targets.each do |target|
  76. target.build_configurations.each do |config|
  77. config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
  78. end
  79. end
  80. end
  81. def remove_swift_ui(code_file)
  82. code_text = File.read(code_file)
  83. code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\)(\n)/,"#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64))\n")
  84. system("rm -rf " + code_file)
  85. aFile = File.new(code_file, 'w+')
  86. aFile.syswrite(code_text)
  87. aFile.close()
  88. end
  89. def remove_swift_ui_realm (code_file)
  90. code_text = File.read(code_file)
  91. code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\) && swif/,'#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64)) && swif')
  92. system("rm -rf " + code_file)
  93. aFile = File.new(code_file, 'w+')
  94. aFile.syswrite(code_text)
  95. aFile.close()
  96. end
  97. def remove_retaincyle (code_file)
  98. code_text = File.read(code_file)
  99. # code_text.gsub!(/layoutCache[currentClass] = ivars;/,'layoutCache[(id)currentClass] = ivars;')
  100. code_text.gsub!(/\[currentClass/,'[(id)currentClass')
  101. system("rm -rf " + code_file)
  102. aFile = File.new(code_file, 'w+')
  103. aFile.syswrite(code_text)
  104. aFile.close()
  105. end
  106. end