Podfile 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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.4.9'
  18. # pod 'BFNetRequestKit', '0.2.3'
  19. # pod 'BFUIKit', '0.1.1'
  20. # pod 'BFMaterialKit', '0.1.6'
  21. # pod 'BFLogger', '0.1.0'
  22. # pod 'BFMediaKit', '0.1.0'
  23. # pod 'BFRecordScreenKit', '0.1.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.5'
  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.3'
  38. # pod "BFMaterialKit" , :git => 'https://git.yishihui.com/iOS/BFMaterialKit.git' , :tag => '0.2.2'
  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.1'
  41. # pod "BFRecordScreenKit" , :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git' , :tag => '0.0.1'
  42. # pod "BFAnalyzeKit" , :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git' , :tag => '0.0.1'
  43. #
  44. #
  45. ## ak:Pods-for-testing
  46. ## zq:Pods-for-testing
  47. # pod 'BFCommonKit', :path => '../BFCommonKit/'
  48. # pod 'BFNetRequestKit', :path => '../BFNetRequestKit/'
  49. # pod 'BFUIKit', :path => '../BFUIKit/'
  50. # pod 'BFMaterialKit', :path => '../BFMaterialKit/'
  51. # pod 'BFLogger', :path => '../BFLogger/'
  52. # pod 'BFMediaKit', :path => '../BFMediaKit/'
  53. # pod 'BFRecordScreenKit', :path => '../BFRecordScreenKit/'
  54. # pod 'BFAnalyzeKit', :path => '../BFAnalyzeKit/'
  55. ## ww:Pods-for-testing
  56. # pod 'BFCommonKit', :path => '../../BFCommonKit/Trunk'
  57. # pod 'BFNetRequestKit', :path => '../../BFNetRequestKit/Trunk'
  58. # pod 'BFUIKit', :path => '../../BFUIKit/Trunk'
  59. # pod 'BFMaterialKit', :path => '../../BFMaterialKit/Trunk'
  60. # pod 'BFLogger', :path => '../../BFLogger/Trunk'
  61. # pod 'BFMediaKit', :path => '../../BFMediaKit/Trunk'
  62. # pod 'BFRecordScreenKit', :path => '../../BFRecordScreenKit/Trunk'
  63. # pod 'BFAnalyzeKit', :path => '../../BFAnalyzeKit/Trunk'
  64. post_install do |installer|
  65. remove_swift_ui("./Pods/Kingfisher/Sources/General/KFOptionsSetter.swift")
  66. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImage.swift")
  67. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/ImageBinder.swift")
  68. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImageOptions.swift")
  69. remove_swift_ui_realm("./Pods/RealmSwift/RealmSwift/SwiftUI.swift")
  70. # remove_RealmSwift_swift_ui
  71. installer.pods_project.targets.each do |target|
  72. target.build_configurations.each do |config|
  73. config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
  74. end
  75. end
  76. end
  77. def remove_swift_ui(code_file)
  78. code_text = File.read(code_file)
  79. code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\)(\n)/,"#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64))\n")
  80. system("rm -rf " + code_file)
  81. aFile = File.new(code_file, 'w+')
  82. aFile.syswrite(code_text)
  83. aFile.close()
  84. end
  85. def remove_swift_ui_realm (code_file)
  86. code_text = File.read(code_file)
  87. code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\) && swif/,'#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64)) && swif')
  88. system("rm -rf " + code_file)
  89. aFile = File.new(code_file, 'w+')
  90. aFile.syswrite(code_text)
  91. aFile.close()
  92. end
  93. end