|
@@ -16,65 +16,77 @@ target 'Introduce' do
|
|
|
pod 'UMCSecurityPlugins', '1.0.6'
|
|
|
pod 'UMAPM', '1.5.5'
|
|
|
pod 'Bugly', '2.5.91'
|
|
|
-
|
|
|
-## Pods-for-AppStore
|
|
|
-# pod 'BFCommonKit', '1.5.9'
|
|
|
-# pod 'BFNetRequestKit', '1.0.3'
|
|
|
-# pod 'BFUIKit', '0.1.5'
|
|
|
-# pod 'BFMaterialKit', '0.2.7'
|
|
|
-# pod 'BFLogger', '0.1.0'
|
|
|
-# pod 'BFMediaKit', '0.0.2'
|
|
|
-# pod 'BFRecordScreenKit', '1.0.0'
|
|
|
+ # 内存泄漏检测
|
|
|
+ pod 'MLeaksFinder', :configurations => ['Debug']
|
|
|
|
|
|
-## Pods-for-Archive(Jenkins)
|
|
|
-# pod 'BFCommonKit', :git => 'https://git.yishihui.com/iOS/BFCommonKit.git'
|
|
|
-# pod 'BFNetRequestKit', :git => 'https://git.yishihui.com/iOS/BFNetRequestKit.git'
|
|
|
-# pod 'BFUIKit', :git => 'https://git.yishihui.com/iOS/BFUIKit.git'
|
|
|
-# pod 'BFMaterialKit', :git => 'https://git.yishihui.com/iOS/BFMaterialKit.git'
|
|
|
-# pod 'BFLogger', :git => 'https://git.yishihui.com/iOS/BFLogger.git'
|
|
|
-# pod 'BFMediaKit', :git => 'https://git.yishihui.com/iOS/BFMediaKit.git'
|
|
|
-# pod 'BFRecordScreenKit', :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git'
|
|
|
-# pod 'BFAnalyzeKit', :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git'
|
|
|
-# pod "BFFFmpeglib", :git => 'https://git.yishihui.com/iOS/BFFFmpeglib.git'
|
|
|
+ # 0:AppStore; 1:Jenkins; 2:hzq; 3:testing;
|
|
|
+ channel = 1
|
|
|
|
|
|
+ case channel
|
|
|
+
|
|
|
+ when 0 # AppStore
|
|
|
+
|
|
|
+ pod 'BFCommonKit', '1.5.9'
|
|
|
+ pod 'BFNetRequestKit', '1.0.3'
|
|
|
+ pod 'BFUIKit', '0.1.5'
|
|
|
+ pod 'BFMaterialKit', '0.2.7'
|
|
|
+ pod 'BFLogger', '0.1.0'
|
|
|
+ pod 'BFMediaKit', '0.0.2'
|
|
|
+ pod 'BFRecordScreenKit', '1.0.0'
|
|
|
+ pod 'BFAnalyzeKit', '0.1.0'
|
|
|
+ pod 'BFFFmpeglib', '1.0.3'
|
|
|
+ pod 'BFUploadKit', '0.1.0'
|
|
|
|
|
|
-
|
|
|
-#使用指定tag
|
|
|
-# pod "BFCommonKit", :git => 'https://git.yishihui.com/iOS/BFCommonKit.git', :tag => '1.5.9'
|
|
|
-# pod "BFNetRequestKit", :git => 'https://git.yishihui.com/iOS/BFNetRequestKit.git', :tag => '1.0.3'
|
|
|
-# pod "BFUIKit", :git => 'https://git.yishihui.com/iOS/BFUIKit.git', :tag => '0.1.5'
|
|
|
-# pod "BFMaterialKit", :git => 'https://git.yishihui.com/iOS/BFMaterialKit.git', :tag => '0.2.7'
|
|
|
-# pod "BFLogger", :git => 'https://git.yishihui.com/iOS/BFLogger.git', :tag => '0.1.0'
|
|
|
-# pod "BFMediaKit", :git => 'https://git.yishihui.com/iOS/BFMediaKit.git', :tag => '0.0.2'
|
|
|
-# pod "BFRecordScreenKit", :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git', :tag => '1.0.0'
|
|
|
-# pod "BFAnalyzeKit", :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git', :tag => '0.0.1'
|
|
|
-
|
|
|
-## ak:Pods-for-testing
|
|
|
-## zq:Pods-for-testing
|
|
|
-
|
|
|
- pod 'BFCommonKit', :path => '../BFCommonKit/'
|
|
|
- pod 'BFNetRequestKit', :path => '../BFNetRequestKit/'
|
|
|
- pod 'BFUIKit', :path => '../BFUIKit/'
|
|
|
- pod 'BFMaterialKit', :path => '../BFMaterialKit/'
|
|
|
- pod 'BFLogger', :path => '../BFLogger/'
|
|
|
- pod 'BFMediaKit', :path => '../BFMediaKit/'
|
|
|
- pod 'BFRecordScreenKit', :path => '../BFRecordScreenKit/'
|
|
|
- pod 'BFAnalyzeKit', :path => '../BFAnalyzeKit/'
|
|
|
- pod 'BFFFmpeglib', :path => '../BFFFmpeglib/'
|
|
|
-
|
|
|
- pod 'MLeaksFinder'
|
|
|
-# pod 'PLCrashReporter'
|
|
|
-
|
|
|
-
|
|
|
-## ww:Pods-for-testing
|
|
|
-# pod 'BFCommonKit', :path => '../../BFCommonKit/Trunk'
|
|
|
-# pod 'BFNetRequestKit', :path => '../../BFNetRequestKit/Trunk'
|
|
|
-# pod 'BFUIKit', :path => '../../BFUIKit/Trunk'
|
|
|
-# pod 'BFMaterialKit', :path => '../../BFMaterialKit/Trunk'
|
|
|
-# pod 'BFLogger', :path => '../../BFLogger/Trunk'
|
|
|
-# pod 'BFMediaKit', :path => '../../BFMediaKit/Trunk'
|
|
|
-# pod 'BFRecordScreenKit', :path => '../../BFRecordScreenKit/Trunk'
|
|
|
-# pod 'BFAnalyzeKit', :path => '../../BFAnalyzeKit/Trunk'
|
|
|
+
|
|
|
+ when 1 # jenkins
|
|
|
+
|
|
|
+ pod 'BFCommonKit', :git => 'https://git.yishihui.com/iOS/BFCommonKit.git'
|
|
|
+ pod 'BFNetRequestKit', :git => 'https://git.yishihui.com/iOS/BFNetRequestKit.git'
|
|
|
+ pod 'BFUIKit', :git => 'https://git.yishihui.com/iOS/BFUIKit.git'
|
|
|
+ pod 'BFMaterialKit', :git => 'https://git.yishihui.com/iOS/BFMaterialKit.git'
|
|
|
+ pod 'BFLogger', :git => 'https://git.yishihui.com/iOS/BFLogger.git'
|
|
|
+ pod 'BFMediaKit', :git => 'https://git.yishihui.com/iOS/BFMediaKit.git',:branch => 'dev'
|
|
|
+ pod 'BFRecordScreenKit', :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git',:branch => 'dev'
|
|
|
+ pod 'BFAnalyzeKit', :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git'
|
|
|
+ pod "BFFFmpeglib", :git => 'https://git.yishihui.com/iOS/BFFFmpeglib.git'
|
|
|
+ pod "BFUploadKit", :git => 'https://git.yishihui.com/iOS/BFUploadKit.git'
|
|
|
+
|
|
|
+ when 2 # hzq
|
|
|
+
|
|
|
+ pod 'BFCommonKit', :path => '../BFCommonKit/'
|
|
|
+ pod 'BFNetRequestKit', :path => '../BFNetRequestKit/'
|
|
|
+ pod 'BFUIKit', :path => '../BFUIKit/'
|
|
|
+ pod 'BFMaterialKit', :path => '../BFMaterialKit/'
|
|
|
+ pod 'BFLogger', :path => '../BFLogger/'
|
|
|
+ pod 'BFMediaKit', :path => '../BFMediaKit/'
|
|
|
+ pod 'BFRecordScreenKit', :path => '../BFRecordScreenKit/'
|
|
|
+ pod 'BFAnalyzeKit', :path => '../BFAnalyzeKit/'
|
|
|
+ pod 'BFFFmpeglib', :path => '../BFFFmpeglib/'
|
|
|
+ pod 'BFUploadKit', :path => '../BFUploadKit/'
|
|
|
+
|
|
|
+ when 3 # testing
|
|
|
+
|
|
|
+ pod 'BFCommonKit', :path => '../../BFCommonKit/Trunk'
|
|
|
+ pod 'BFNetRequestKit', :path => '../../BFNetRequestKit/Trunk'
|
|
|
+ pod 'BFUIKit', :path => '../../BFUIKit/Trunk'
|
|
|
+ pod 'BFMaterialKit', :path => '../../BFMaterialKit/Trunk'
|
|
|
+ pod 'BFLogger', :path => '../../BFLogger/Trunk'
|
|
|
+ pod 'BFMediaKit', :path => '../../BFMediaKit/Trunk'
|
|
|
+ pod 'BFRecordScreenKit', :path => '../../BFRecordScreenKit/Trunk'
|
|
|
+ pod 'BFAnalyzeKit', :path => '../../BFAnalyzeKit/Trunk'
|
|
|
+
|
|
|
+ else
|
|
|
+
|
|
|
+ pod "BFCommonKit", :git => 'https://git.yishihui.com/iOS/BFCommonKit.git', :tag => '1.5.9'
|
|
|
+ pod "BFNetRequestKit", :git => 'https://git.yishihui.com/iOS/BFNetRequestKit.git', :tag => '1.0.3'
|
|
|
+ pod "BFUIKit", :git => 'https://git.yishihui.com/iOS/BFUIKit.git', :tag => '0.1.5'
|
|
|
+ pod "BFMaterialKit", :git => 'https://git.yishihui.com/iOS/BFMaterialKit.git', :tag => '0.2.7'
|
|
|
+ pod "BFLogger", :git => 'https://git.yishihui.com/iOS/BFLogger.git', :tag => '0.1.0'
|
|
|
+ pod "BFMediaKit", :git => 'https://git.yishihui.com/iOS/BFMediaKit.git', :tag => '0.0.2'
|
|
|
+ pod "BFRecordScreenKit", :git => 'https://git.yishihui.com/iOS/BFRecordScreenKit.git', :tag => '1.0.0'
|
|
|
+ pod "BFAnalyzeKit", :git => 'https://git.yishihui.com/iOS/BFAnalyzeKit.git', :tag => '0.0.1'
|
|
|
+
|
|
|
+ end
|
|
|
|
|
|
|
|
|
|
|
@@ -85,7 +97,8 @@ target 'Introduce' do
|
|
|
remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/ImageBinder.swift")
|
|
|
remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImageOptions.swift")
|
|
|
remove_swift_ui_realm("./Pods/RealmSwift/RealmSwift/SwiftUI.swift")
|
|
|
-# remove_RealmSwift_swift_ui
|
|
|
+ remove_retaincyle("./Pods/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/FBClassStrongLayout.mm")
|
|
|
+
|
|
|
installer.pods_project.targets.each do |target|
|
|
|
target.build_configurations.each do |config|
|
|
|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
|
|
@@ -113,7 +126,6 @@ target 'Introduce' do
|
|
|
|
|
|
def remove_retaincyle (code_file)
|
|
|
code_text = File.read(code_file)
|
|
|
-# code_text.gsub!(/layoutCache[currentClass] = ivars;/,'layoutCache[(id)currentClass] = ivars;')
|
|
|
code_text.gsub!(/\[currentClass/,'[(id)currentClass')
|
|
|
system("rm -rf " + code_file)
|
|
|
|