Podfile 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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. # 内存泄漏检测
  17. pod 'MLeaksFinder', :configurations => ['Debug']
  18. # 0:AppStore; 1:Jenkins; 2:hzq; 3:testing;
  19. channel = 1
  20. case channel
  21. when 0 # AppStore
  22. pod 'BFCommonKit', '1.6.0'
  23. pod 'BFNetRequestKit', '1.0.3'
  24. pod 'BFUIKit', '0.1.5'
  25. pod 'BFMaterialKit', '0.2.7'
  26. pod 'BFLogger', '0.1.0'
  27. pod 'BFMediaKit', '0.1.2'
  28. pod 'BFRecordScreenKit', '1.0.1'
  29. pod 'BFAnalyzeKit', '0.1.0'
  30. pod 'BFFFmpeglib', '1.0.3'
  31. pod 'BFUploadKit', '0.1.1'
  32. when 1 # jenkins
  33. pod 'BFCommonKit', :git => 'https://git.yishihui.com/iOS/BFCommonKit.git'
  34. pod 'BFNetRequestKit', :git => 'https://git.yishihui.com/iOS/BFNetRequestKit.git'
  35. pod 'BFUIKit', :git => 'https://git.yishihui.com/iOS/BFUIKit.git'
  36. pod 'BFMaterialKit', :git => 'https://git.yishihui.com/iOS/BFMaterialKit.git'
  37. pod 'BFLogger', :git => 'https://git.yishihui.com/iOS/BFLogger.git'
  38. pod 'BFMediaKit', :git => 'https://git.yishihui.com/iOS/BFMediaKit.git',:branch => 'dev'
  39. pod 'BFRecordScreenKit', :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git',:branch => 'dev'
  40. pod 'BFAnalyzeKit', :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git'
  41. pod "BFFFmpeglib", :git => 'https://git.yishihui.com/iOS/BFFFmpeglib.git' ,:branch => 'dev'
  42. pod "BFUploadKit", :git => 'https://git.yishihui.com/iOS/BFUploadKit.git'
  43. when 2 # hzq
  44. pod 'BFCommonKit', :path => '../BFCommonKit/'
  45. pod 'BFNetRequestKit', :path => '../BFNetRequestKit/'
  46. pod 'BFUIKit', :path => '../BFUIKit/'
  47. pod 'BFMaterialKit', :path => '../BFMaterialKit/'
  48. pod 'BFLogger', :path => '../BFLogger/'
  49. pod 'BFMediaKit', :path => '../BFMediaKit/'
  50. pod 'BFRecordScreenKit', :path => '../BFRecordScreenKit/'
  51. pod 'BFAnalyzeKit', :path => '../BFAnalyzeKit/'
  52. pod 'BFFFmpeglib', :path => '../BFFFmpeglib/'
  53. pod 'BFUploadKit', :path => '../BFUploadKit/'
  54. when 3 # testing
  55. pod 'BFCommonKit', :path => '../../BFCommonKit/Trunk'
  56. pod 'BFNetRequestKit', :path => '../../BFNetRequestKit/Trunk'
  57. pod 'BFUIKit', :path => '../../BFUIKit/Trunk'
  58. pod 'BFMaterialKit', :path => '../../BFMaterialKit/Trunk'
  59. pod 'BFLogger', :path => '../../BFLogger/Trunk'
  60. pod 'BFMediaKit', :path => '../../BFMediaKit/Trunk'
  61. pod 'BFRecordScreenKit', :path => '../../BFRecordScreenKit/Trunk'
  62. pod 'BFAnalyzeKit', :path => '../../BFAnalyzeKit/Trunk'
  63. else
  64. pod "BFCommonKit", :git => 'https://git.yishihui.com/iOS/BFCommonKit.git', :tag => '1.5.9'
  65. pod "BFNetRequestKit", :git => 'https://git.yishihui.com/iOS/BFNetRequestKit.git', :tag => '1.0.3'
  66. pod "BFUIKit", :git => 'https://git.yishihui.com/iOS/BFUIKit.git', :tag => '0.1.5'
  67. pod "BFMaterialKit", :git => 'https://git.yishihui.com/iOS/BFMaterialKit.git', :tag => '0.2.7'
  68. pod "BFLogger", :git => 'https://git.yishihui.com/iOS/BFLogger.git', :tag => '0.1.0'
  69. pod "BFMediaKit", :git => 'https://git.yishihui.com/iOS/BFMediaKit.git', :tag => '0.0.2'
  70. pod "BFRecordScreenKit", :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git', :tag => '1.0.0'
  71. pod "BFAnalyzeKit", :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git', :tag => '0.0.1'
  72. end
  73. post_install do |installer|
  74. remove_swift_ui("./Pods/Kingfisher/Sources/General/KFOptionsSetter.swift")
  75. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImage.swift")
  76. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/ImageBinder.swift")
  77. remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImageOptions.swift")
  78. remove_swift_ui_realm("./Pods/RealmSwift/RealmSwift/SwiftUI.swift")
  79. remove_retaincyle("./Pods/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/FBClassStrongLayout.mm")
  80. remove_fftools("./Pods/Target Support Files/BFMediaKit/BFMediaKit-umbrella.h")
  81. installer.pods_project.targets.each do |target|
  82. target.build_configurations.each do |config|
  83. config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
  84. end
  85. end
  86. end
  87. def remove_swift_ui(code_file)
  88. code_text = File.read(code_file)
  89. code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\)(\n)/,"#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64))\n")
  90. system("rm -rf " + code_file)
  91. aFile = File.new(code_file, 'w+')
  92. aFile.syswrite(code_text)
  93. aFile.close()
  94. end
  95. def remove_swift_ui_realm (code_file)
  96. code_text = File.read(code_file)
  97. code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\) && swif/,'#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64)) && swif')
  98. system("rm -rf " + code_file)
  99. aFile = File.new(code_file, 'w+')
  100. aFile.syswrite(code_text)
  101. aFile.close()
  102. end
  103. def remove_retaincyle (code_file)
  104. code_text = File.read(code_file)
  105. code_text.gsub!(/\[currentClass/,'[(id)currentClass')
  106. system("rm -rf " + code_file)
  107. aFile = File.new(code_file, 'w+')
  108. aFile.syswrite(code_text)
  109. aFile.close()
  110. end
  111. # add by ak remove_fftools
  112. def remove_fftools (code_file)
  113. code_text = File.read(code_file)
  114. code_text.gsub!(/#import "cmdutils.h"/,'')
  115. code_text.gsub!(/#import "config.h"/,'')
  116. code_text.gsub!(/#import "ffmpeg.h"/,'')
  117. system("rm -rf " + code_file)
  118. aFile = File.new(code_file, 'w+')
  119. aFile.syswrite(code_text)
  120. aFile.close()
  121. end
  122. end