Class: Fastlane::Helper::AnalyzerHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/dependency_check_ios_analyzer/helper/analyzer_helper.rb

Class Method Summary collapse

Class Method Details

.analize_packages(bin_path:, params:) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fastlane/plugin/dependency_check_ios_analyzer/helper/analyzer_helper.rb', line 6

def self.analize_packages(bin_path:, params:)
  return true if params[:skip_spm_analysis]

  path_to_report = "#{params[:output_directory]}/SwiftPackages"
  clean_reports_folder(path_to_report)
  params[:spm_checkouts_path] = resolve_package_dependencies(params)

  check_dependencies(
    params: params,
    bin_path: bin_path,
    path_to_report: path_to_report,
    destination: params[:spm_checkouts_path]
  )
end

.analize_pods(bin_path:, params:) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/fastlane/plugin/dependency_check_ios_analyzer/helper/analyzer_helper.rb', line 21

def self.analize_pods(bin_path:, params:)
  return true if params[:skip_pods_analysis]

  path_to_report = "#{params[:output_directory]}/CocoaPods"
  clean_reports_folder(path_to_report)
  params[:pod_file_lock_path] = resolve_pods_dependencies(params)

  check_dependencies(
    params: params,
    bin_path: bin_path,
    path_to_report: path_to_report,
    destination: params[:pod_file_lock_path]
  )
end