|
@@ -16,11 +16,16 @@ target 'Introduce' do
|
|
|
pod 'UMCSecurityPlugins', '1.0.6'
|
|
|
pod 'UMAPM', '1.5.5'
|
|
|
pod 'Bugly', '2.5.91'
|
|
|
-
|
|
|
- channel = "Jenkins"
|
|
|
+ # 内存泄漏检测
|
|
|
+ pod 'MLeaksFinder', :configurations => ['Debug']
|
|
|
+
|
|
|
+ # 0:AppStore; 1:Jenkins; 2:hzq; 3:testing;
|
|
|
+ channel = 2
|
|
|
|
|
|
case channel
|
|
|
- when "AppStore"
|
|
|
+
|
|
|
+ when 0 # AppStore
|
|
|
+
|
|
|
pod 'BFCommonKit', '1.5.9'
|
|
|
pod 'BFNetRequestKit', '1.0.3'
|
|
|
pod 'BFUIKit', '0.1.5'
|
|
@@ -28,8 +33,12 @@ target 'Introduce' do
|
|
|
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'
|
|
|
+
|
|
|
|
|
|
- when "Jenkins"
|
|
|
+ when 1 # jenkins
|
|
|
|
|
|
pod 'BFCommonKit', :git => 'https://git.yishihui.com/iOS/BFCommonKit.git'
|
|
|
pod 'BFNetRequestKit', :git => 'https://git.yishihui.com/iOS/BFNetRequestKit.git'
|
|
@@ -42,7 +51,7 @@ target 'Introduce' do
|
|
|
pod "BFFFmpeglib", :git => 'https://git.yishihui.com/iOS/BFFFmpeglib.git'
|
|
|
pod "BFUploadKit", :git => 'https://git.yishihui.com/iOS/BFUploadKit.git'
|
|
|
|
|
|
- when "hzq"
|
|
|
+ when 2 # hzq
|
|
|
|
|
|
pod 'BFCommonKit', :path => '../BFCommonKit/'
|
|
|
pod 'BFNetRequestKit', :path => '../BFNetRequestKit/'
|
|
@@ -54,9 +63,8 @@ target 'Introduce' do
|
|
|
pod 'BFAnalyzeKit', :path => '../BFAnalyzeKit/'
|
|
|
pod 'BFFFmpeglib', :path => '../BFFFmpeglib/'
|
|
|
pod 'BFUploadKit', :path => '../BFUploadKit/'
|
|
|
-# pod 'MLeaksFinder'
|
|
|
|
|
|
- when "test"
|
|
|
+ when 3 # testing
|
|
|
|
|
|
pod 'BFCommonKit', :path => '../../BFCommonKit/Trunk'
|
|
|
pod 'BFNetRequestKit', :path => '../../BFNetRequestKit/Trunk'
|
|
@@ -89,7 +97,7 @@ 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_retaincyle("./Pods/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/FBClassStrongLayout.mm")
|
|
|
+ remove_retaincyle("./Pods/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/FBClassStrongLayout.mm")
|
|
|
|
|
|
installer.pods_project.targets.each do |target|
|
|
|
target.build_configurations.each do |config|
|
|
@@ -118,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)
|
|
|
|