Class: Pod::Installer::Analyzer::AnalysisResult

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods/installer/analyzer/analysis_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#podfile_stateSpecsState

Returns the states of the Podfile specs.

Returns:

  • (SpecsState)

    the states of the Podfile specs.



7
8
9
# File 'lib/cocoapods/installer/analyzer/analysis_result.rb', line 7

def podfile_state
  @podfile_state
end

#sandbox_stateSpecsState

Returns the states of the Sandbox respect the resolved specifications.

Returns:



22
23
24
# File 'lib/cocoapods/installer/analyzer/analysis_result.rb', line 22

def sandbox_state
  @sandbox_state
end

#specificationsArray<Specification>

Returns the specifications of the resolved version of Pods that should be installed.

Returns:

  • (Array<Specification>)

    the specifications of the resolved version of Pods that should be installed.



17
18
19
# File 'lib/cocoapods/installer/analyzer/analysis_result.rb', line 17

def specifications
  @specifications
end

#specs_by_targetHash{TargetDefinition => Array<Specification>}

Returns the specifications grouped by target.

Returns:

  • (Hash{TargetDefinition => Array<Specification>})

    the specifications grouped by target.



12
13
14
# File 'lib/cocoapods/installer/analyzer/analysis_result.rb', line 12

def specs_by_target
  @specs_by_target
end

#target_inspectionsHash{TargetDefinition => Array<TargetInspectionResult>}

Returns the results of inspecting the user targets.

Returns:



31
32
33
# File 'lib/cocoapods/installer/analyzer/analysis_result.rb', line 31

def target_inspections
  @target_inspections
end

#targetsArray<Target>

Returns The Podfile targets containing library dependencies.

Returns:

  • (Array<Target>)

    The Podfile targets containing library dependencies.



27
28
29
# File 'lib/cocoapods/installer/analyzer/analysis_result.rb', line 27

def targets
  @targets
end

Instance Method Details

#all_user_build_configurationsHash{String=>Symbol}

Returns A hash representing all the user build configurations across all integration targets. Each key corresponds to the name of a configuration and its value to its type (‘:debug` or `:release`).

Returns:

  • (Hash{String=>Symbol})

    A hash representing all the user build configurations across all integration targets. Each key corresponds to the name of a configuration and its value to its type (‘:debug` or `:release`).



38
39
40
41
42
# File 'lib/cocoapods/installer/analyzer/analysis_result.rb', line 38

def all_user_build_configurations
  targets.reduce({}) do |result, target|
    result.merge(target.user_build_configurations)
  end
end