Class: Pod::Installer

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-timeconsuming.rb,
lib/cocoapods-timeconsuming.rb,
lib/cocoapods-timeconsuming.rb

Instance Method Summary collapse

Instance Method Details

#install!Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/cocoapods-timeconsuming.rb', line 6

def install!
  start_time = Time.new
  prepare
  cost_time = Time.new.to_i-start_time.to_i
  p 'prepare cost: '+cost_time.to_s
  end_time = Time.new

  resolve_dependencies
  cost_time = Time.new.to_i-end_time.to_i
  p 'resolve_dependencies cost: '+cost_time.to_s
  end_time = Time.new

  download_dependencies
  cost_time = Time.new.to_i-end_time.to_i
  p 'download_dependencies cost: '+cost_time.to_s
  end_time = Time.new

  verify_no_duplicate_framework_names
  cost_time = Time.new.to_i-end_time.to_i
  p 'verify_no_duplicate_framework_names cost: '+cost_time.to_s
  end_time = Time.new

  verify_no_static_framework_transitive_dependencies
  cost_time = Time.new.to_i-end_time.to_i
  p 'verify_no_static_framework_transitive_dependencies cost: '+cost_time.to_s
  end_time = Time.new

  verify_framework_usage
  cost_time = Time.new.to_i-end_time.to_i
  p 'verify_framework_usage cost: '+cost_time.to_s
  end_time = Time.new

  generate_pods_project
  cost_time = Time.new.to_i-end_time.to_i
  p 'generate_pods_project cost: '+cost_time.to_s
  end_time = Time.new

  integrate_user_project if installation_options.integrate_targets?
  cost_time = Time.new.to_i-end_time.to_i
  p 'integrate_user_project cost: '+cost_time.to_s
  end_time = Time.new

  perform_post_install_actions
  cost_time = Time.new.to_i-end_time.to_i
  p 'perform_post_install_actions cost: '+cost_time.to_s
  p 'total cost: '+(Time.new.to_i-start_time.to_i).to_s
end