Podfile 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. ## Pods-for-AppStore
  17. # pod 'BFCommonKit', '1.5.9'
  18. # pod 'BFNetRequestKit', '1.0.3'
  19. # pod 'BFUIKit', '0.1.5'
  20. # pod 'BFMaterialKit', '0.2.7'
  21. # pod 'BFLogger', '0.1.0'
  22. # pod 'BFMediaKit', '0.0.2'
  23. # pod 'BFRecordScreenKit', '1.0.0'
  24. ## Pods-for-Archive(Jenkins)
  25. pod 'BFCommonKit', :git => 'https://git.yishihui.com/iOS/BFCommonKit.git'
  26. pod 'BFNetRequestKit', :git => 'https://git.yishihui.com/iOS/BFNetRequestKit.git'
  27. pod 'BFUIKit', :git => 'https://git.yishihui.com/iOS/BFUIKit.git'
  28. pod 'BFMaterialKit', :git => 'https://git.yishihui.com/iOS/BFMaterialKit.git'
  29. pod 'BFLogger', :git => 'https://git.yishihui.com/iOS/BFLogger.git'
  30. pod 'BFMediaKit', :git => 'https://git.yishihui.com/iOS/BFMediaKit.git'
  31. pod 'BFRecordScreenKit', :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git'
  32. pod 'BFAnalyzeKit', :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git'
  33. pod "BFFFmpeglib", :git => 'https://git.yishihui.com/iOS/BFFFmpeglib.git'
  34. #使用指定tag
  35. # pod "BFCommonKit", :git => 'https://git.yishihui.com/iOS/BFCommonKit.git', :tag => '1.5.9'
  36. # pod "BFNetRequestKit", :git => 'https://git.yishihui.com/iOS/BFNetRequestKit.git', :tag => '1.0.3'
  37. # pod "BFUIKit", :git => 'https://git.yishihui.com/iOS/BFUIKit.git', :tag => '0.1.5'
  38. # pod "BFMaterialKit", :git => 'https://git.yishihui.com/iOS/BFMaterialKit.git', :tag => '0.2.7'
  39. # pod "BFLogger", :git => 'https://git.yishihui.com/iOS/BFLogger.git', :tag => '0.1.0'
  40. # pod "BFMediaKit", :git => 'https://git.yishihui.com/iOS/BFMediaKit.git', :tag => '0.0.2'
  41. # pod "BFRecordScreenKit", :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git', :tag => '1.0.0'
  42. # pod "BFAnalyzeKit", :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git', :tag => '0.0.1'
  43. ## ak:Pods-for-testing
  44. ## zq:Pods-for-testing
  45. # pod 'BFCommonKit', :path => '../BFCommonKit/'
  46. # pod 'BFNetRequestKit', :path => '../BFNetRequestKit/'
  47. # pod 'BFUIKit', :path => '../BFUIKit/'
  48. # pod 'BFMaterialKit', :path => '../BFMaterialKit/'
  49. # pod 'BFLogger', :path => '../BFLogger/'
  50. # pod 'BFMediaKit', :path => '../BFMediaKit/'
  51. # pod 'BFRecordScreenKit', :path => '../BFRecordScreenKit/'
  52. # pod 'BFAnalyzeKit', :path => '../BFAnalyzeKit/'
  53. # pod 'BFFFmpeglib', :path => '../BFFFmpeglib/'
  54. # pod 'MLeaksFinder'
  55. # pod 'PLCrashReporter'
  56. ## ww:Pods-for-testing
  57. # pod 'BFCommonKit', :path => '../../BFCommonKit/Trunk'
  58. # pod 'BFNetRequestKit', :path => '../../BFNetRequestKit/Trunk'
  59. # pod 'BFUIKit', :path => '../../BFUIKit/Trunk'
  60. # pod 'BFMaterialKit', :path => '../../BFMaterialKit/Trunk'
  61. # pod 'BFLogger', :path => '../../BFLogger/Trunk'
  62. # pod 'BFMediaKit', :path => '../../BFMediaKit/Trunk'
  63. # pod 'BFRecordScreenKit', :path => '../../BFRecordScreenKit/Trunk'
  64. # pod 'BFAnalyzeKit', :path => '../../BFAnalyzeKit/Trunk'
  65. post_install do |installer|
  66. remove_swift_ui("./Pods/Kingfisher/Sources/General/KFOptionsSetter.swift")
  67. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImage.swift")
  68. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/ImageBinder.swift")
  69. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImageOptions.swift")
  70. remove_swift_ui_realm("./Pods/RealmSwift/RealmSwift/SwiftUI.swift")
  71. # remove_RealmSwift_swift_ui
  72. installer.pods_project.targets.each do |target|
  73. target.build_configurations.each do |config|
  74. config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
  75. end
  76. end
  77. end
  78. def remove_swift_ui(code_file)
  79. code_text = File.read(code_file)
  80. code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\)(\n)/,"#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64))\n")
  81. system("rm -rf " + code_file)
  82. aFile = File.new(code_file, 'w+')
  83. aFile.syswrite(code_text)
  84. aFile.close()
  85. end
  86. def remove_swift_ui_realm (code_file)
  87. code_text = File.read(code_file)
  88. code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\) && swif/,'#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64)) && swif')
  89. system("rm -rf " + code_file)
  90. aFile = File.new(code_file, 'w+')
  91. aFile.syswrite(code_text)
  92. aFile.close()
  93. end
  94. end