Class: Pod::DyInstaller::Analyzer::AnalysisResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#podfile_dependency_cachePodfileDependencyCache

Returns the cache of all dependencies in the podfile.

Returns:



42
43
44
# File 'lib/pod/installer/analyzer/analysis_result.rb', line 42

def podfile_dependency_cache
  @podfile_dependency_cache
end

#podfile_stateSpecsState

Returns the states of the Podfile specs.

Returns:

  • (SpecsState)

    the states of the Podfile specs.



7
8
9
# File 'lib/pod/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:

  • (SpecsState)

    the states of the Sandbox respect the resolved specifications.



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

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.



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

def specifications
  @specifications
end

#specs_by_sourceHash{Source => Array<Specification>}

Returns the specifications grouped by spec repo source.

Returns:

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

    the specifications grouped by spec repo source.



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

def specs_by_source
  @specs_by_source
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/pod/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:



37
38
39
# File 'lib/pod/installer/analyzer/analysis_result.rb', line 37

def target_inspections
  @target_inspections
end

#targetsArray<AggregateTarget>

Returns The aggregate targets created for each TargetDefinition from the Podfile.

Returns:

  • (Array<AggregateTarget>)

    The aggregate targets created for each TargetDefinition from the Podfile.



32
33
34
# File 'lib/pod/installer/analyzer/analysis_result.rb', line 32

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`).



49
50
51
52
53
# File 'lib/pod/installer/analyzer/analysis_result.rb', line 49

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