Podfile 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. target 'Introduce' do
  7. #富文本库
  8. pod 'TYAttributedLabel','2.6.9'
  9. ## Pods-for-AppStore
  10. # pod 'BFCommonKit', '1.4.9'
  11. # pod 'BFNetRequestKit', '0.2.3'
  12. # pod 'BFUIKit', '0.1.1'
  13. # pod 'BFMaterialKit', '0.1.6'
  14. # pod 'BFLogger', '0.1.0'
  15. # pod 'BFMediaKit', '0.1.0'
  16. # pod 'BFRecordScreenKit', '0.1.0'
  17. ## Pods-for-Archive(Jenkins)
  18. pod 'BFCommonKit', :git => 'https://git.yishihui.com/iOS/BFCommonKit.git'
  19. pod 'BFNetRequestKit', :git => 'https://git.yishihui.com/iOS/BFNetRequestKit.git'
  20. pod 'BFUIKit', :git => 'https://git.yishihui.com/iOS/BFUIKit.git'
  21. pod 'BFMaterialKit', :git => 'https://git.yishihui.com/iOS/BFMaterialKit.git'
  22. pod 'BFLogger', :git => 'https://git.yishihui.com/iOS/BFLogger.git'
  23. pod 'BFMediaKit', :git => 'https://git.yishihui.com/iOS/BFMediaKit.git'
  24. pod 'BFRecordScreenKit', :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git'
  25. pod 'BFAnalyzeKit', :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git'
  26. ## ak:Pods-for-testing
  27. # pod 'BFCommonKit', :path => '/Users/ak/Desktop/TZFrameworks/BFCommonKit/'
  28. # pod 'BFNetRequestKit', :path => '/Users/ak/Desktop/TZFrameworks/BFNetRequestKit/'
  29. # pod 'BFUIKit', :path => '/Users/ak/Desktop/TZFrameworks/BFUIKit/'
  30. # pod 'BFMaterialKit', :path => '/Users/ak/Desktop/TZFrameworks/BFMaterialKit/'
  31. # pod 'BFLogger', :path => '/Users/ak/Desktop/TZFrameworks/BFLogger/'
  32. # pod 'BFMediaKit', :path => '/Users/ak/Desktop/TZFrameworks/BFMediaKit/'
  33. # pod 'BFRecordScreenKit', :path => '/Users/ak/Desktop/TZFrameworks/BFRecordScreenKit/'
  34. # pod 'BFAnalyzeKit', :path => '/Users/ak/Desktop/TZFrameworks/BFAnalyzeKit/'
  35. ## zq:Pods-for-testing
  36. # pod 'BFCommonKit', :path => '../BFCommonKit/'
  37. # pod 'BFNetRequestKit', :path => '../BFNetRequestKit/'
  38. # pod 'BFUIKit', :path => '../BFUIKit/'
  39. # pod 'BFMaterialKit', :path => '../BFMaterialKit/'
  40. # pod 'BFLogger', :path => '../BFLogger/'
  41. # pod 'BFMediaKit', :path => '../BFMediaKit/'
  42. # pod 'BFRecordScreenKit', :path => '../BFRecordScreenKit/'
  43. # pod 'BFAnalyzeKit', :path => '../BFAnalyzeKit/'
  44. ## ww:Pods-for-testing
  45. # pod 'BFCommonKit', :path => '../../BFCommonKit/Trunk'
  46. # pod 'BFNetRequestKit', :path => '../../BFNetRequestKit/Trunk'
  47. # pod 'BFUIKit', :path => '../../BFUIKit/Trunk'
  48. # pod 'BFMaterialKit', :path => '../../BFMaterialKit/Trunk'
  49. # pod 'BFLogger', :path => '../../BFLogger/Trunk'
  50. # pod 'BFMediaKit', :path => '../../BFMediaKit/Trunk'
  51. # pod 'BFRecordScreenKit', :path => '../../BFRecordScreenKit/Trunk'
  52. # pod 'BFAnalyzeKit', :path => '../../BFAnalyzeKit/Trunk'
  53. post_install do |installer|
  54. remove_swift_ui("./Pods/Kingfisher/Sources/General/KFOptionsSetter.swift")
  55. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImage.swift")
  56. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/ImageBinder.swift")
  57. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImageOptions.swift")
  58. remove_swift_ui_realm("./Pods/RealmSwift/RealmSwift/SwiftUI.swift")
  59. # remove_RealmSwift_swift_ui
  60. installer.pods_project.targets.each do |target|
  61. target.build_configurations.each do |config|
  62. config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
  63. end
  64. end
  65. end
  66. def remove_swift_ui(code_file)
  67. code_text = File.read(code_file)
  68. code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\)(\n)/,"#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64))\n")
  69. system("rm -rf " + code_file)
  70. aFile = File.new(code_file, 'w+')
  71. aFile.syswrite(code_text)
  72. aFile.close()
  73. end
  74. def remove_swift_ui_realm (code_file)
  75. code_text = File.read(code_file)
  76. code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\) && swif/,'#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64)) && swif')
  77. system("rm -rf " + code_file)
  78. aFile = File.new(code_file, 'w+')
  79. aFile.syswrite(code_text)
  80. aFile.close()
  81. end
  82. end