lib/cocoapods-bb-PodAssistant/podfile.rb in cocoapods-bb-PodAssistant-0.1.5.1 vs lib/cocoapods-bb-PodAssistant/podfile.rb in cocoapods-bb-PodAssistant-0.1.6
- old
+ new
@@ -45,16 +45,28 @@
module Pod
class Podfile
# @!group DSL support
include Pod::Podfile::DSL
-
- # pod组件合并操作
- def pod_module_run(pod_modules, member_modules = {}, member_configs = [], ignore_local_stable = false, skip_stable_check = false)
+ # pod组件合并操作(项目)
+ def project_pod_module_run(pod_modules, member_modules = {}, member_configs = [], skip_stable_check = false)
# Pod::UI.puts "Pod Module:#{pod_modules}"
time1 = Time.new
+ puts "[PodAssistant]项目pod组件组装开始操作时间:#{time1}".green
+ source = BB::PodModule.new(pod_modules, member_modules, member_configs, false, skip_stable_check)
+ pod_box_module_run(source)
+ time2 = Time.new
+ puts "[PodAssistant]项目pod组件组装结束时间:#{time2}".green
+ # 获取时间差
+ time = time2 - time1
+ puts "项目pod组件组装操作耗时:#{time.to_s.send(:red)}秒".green
+ end
+ # pod组件合并操作(单组件)
+ def pod_module_run(pod_modules, member_modules = {}, member_configs = [])
+ # Pod::UI.puts "Pod Module:#{pod_modules}"
+ time1 = Time.new
puts "[PodAssistant]pod组件组装开始操作时间:#{time1}".green
- source = BB::PodModule.new(pod_modules, member_modules, member_configs, ignore_local_stable, skip_stable_check)
+ source = BB::PodModule.new(pod_modules, member_modules, member_configs, true, true)
pod_box_module_run(source)
time2 = Time.new
puts "[PodAssistant]pod组件组装结束时间:#{time2}".green
# 获取时间差
time = time2 - time1
\ No newline at end of file