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. ## 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. ## ww:Pods-for-testing
  54. # pod 'BFCommonKit', :path => '../../BFCommonKit/Trunk'
  55. # pod 'BFNetRequestKit', :path => '../../BFNetRequestKit/Trunk'
  56. # pod 'BFUIKit', :path => '../../BFUIKit/Trunk'
  57. # pod 'BFMaterialKit', :path => '../../BFMaterialKit/Trunk'
  58. # pod 'BFLogger', :path => '../../BFLogger/Trunk'
  59. # pod 'BFMediaKit', :path => '../../BFMediaKit/Trunk'
  60. # pod 'BFRecordScreenKit', :path => '../../BFRecordScreenKit/Trunk'
  61. # pod 'BFAnalyzeKit', :path => '../../BFAnalyzeKit/Trunk'
  62. post_install do |installer|
  63. remove_swift_ui("./Pods/Kingfisher/Sources/General/KFOptionsSetter.swift")
  64. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImage.swift")
  65. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/ImageBinder.swift")
  66. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImageOptions.swift")
  67. remove_swift_ui_realm("./Pods/RealmSwift/RealmSwift/SwiftUI.swift")
  68. # remove_RealmSwift_swift_ui
  69. installer.pods_project.targets.each do |target|
  70. target.build_configurations.each do |config|
  71. config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
  72. end
  73. end
  74. end
  75. def remove_swift_ui(code_file)
  76. code_text = File.read(code_file)
  77. code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\)(\n)/,"#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64))\n")
  78. system("rm -rf " + code_file)
  79. aFile = File.new(code_file, 'w+')
  80. aFile.syswrite(code_text)
  81. aFile.close()
  82. end
  83. def remove_swift_ui_realm (code_file)
  84. code_text = File.read(code_file)
  85. code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\) && swif/,'#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64)) && swif')
  86. system("rm -rf " + code_file)
  87. aFile = File.new(code_file, 'w+')
  88. aFile.syswrite(code_text)
  89. aFile.close()
  90. end
  91. end