Podfile 4.6 KB

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