Class: Pod::Installer::ProjectCache::ProjectCacheAnalysisResult

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods/installer/project_cache/project_cache_analysis_result.rb

Overview

The result object from analyzing the project cache.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pod_targets_to_generate, aggregate_targets_to_generate, cache_key_by_target_label, build_configurations, project_object_version) ⇒ ProjectCacheAnalysisResult

Initialize a new instance.

Parameters:

  • pod_targets_to_generate (Array<PodTarget>)

    @see #pod_targets_to_generate

  • Array<AggregateTarget] (Array<AggregateTarget] aggregate_targets_to_generate @see #aggregate_targets_to_generate)

    aggregate_targets_to_generate @see #aggregate_targets_to_generate

  • cache_key_by_target_label (Hash{String => TargetCacheKey})

    @see #cache_key_by_target_label

  • build_configurations (Hash{String => Symbol})

    @see #build_configurations

  • project_object_version (Integer)

    @see #project_object_version



42
43
44
45
46
47
48
49
# File 'lib/cocoapods/installer/project_cache/project_cache_analysis_result.rb', line 42

def initialize(pod_targets_to_generate, aggregate_targets_to_generate, cache_key_by_target_label,
               build_configurations, project_object_version)
  @pod_targets_to_generate = pod_targets_to_generate
  @aggregate_targets_to_generate = aggregate_targets_to_generate
  @cache_key_by_target_label = cache_key_by_target_label
  @build_configurations = build_configurations
  @project_object_version = project_object_version
end

Instance Attribute Details

#aggregate_targets_to_generateArray<AggregateTarget> (readonly)

Returns The list of aggregate targets that need to be regenerated. This can be nil if we don’t want to generate ANY aggregate targets since we still want to be able to generate an empty list of aggregate targets.

Returns:

  • (Array<AggregateTarget>)

    The list of aggregate targets that need to be regenerated. This can be nil if we don’t want to generate ANY aggregate targets since we still want to be able to generate an empty list of aggregate targets.



17
18
19
# File 'lib/cocoapods/installer/project_cache/project_cache_analysis_result.rb', line 17

def aggregate_targets_to_generate
  @aggregate_targets_to_generate
end

#build_configurationsHash{String => Symbol} (readonly)

Returns The build configurations to install with each target.

Returns:

  • (Hash{String => Symbol})

    The build configurations to install with each target.



27
28
29
# File 'lib/cocoapods/installer/project_cache/project_cache_analysis_result.rb', line 27

def build_configurations
  @build_configurations
end

#cache_key_by_target_labelHash{String => TargetCacheKey} (readonly)

Returns Updated hash of target cache key by target label for all targets.

Returns:

  • (Hash{String => TargetCacheKey})

    Updated hash of target cache key by target label for all targets.



22
23
24
# File 'lib/cocoapods/installer/project_cache/project_cache_analysis_result.rb', line 22

def cache_key_by_target_label
  @cache_key_by_target_label
end

#pod_targets_to_generateArray<PodTarget> (readonly)

Returns The list of pod targets that need to be regenerated.

Returns:

  • (Array<PodTarget>)

    The list of pod targets that need to be regenerated.



10
11
12
# File 'lib/cocoapods/installer/project_cache/project_cache_analysis_result.rb', line 10

def pod_targets_to_generate
  @pod_targets_to_generate
end

#project_object_versionInteger (readonly)

Returns The project object version to install with each target.

Returns:

  • (Integer)

    The project object version to install with each target.



32
33
34
# File 'lib/cocoapods/installer/project_cache/project_cache_analysis_result.rb', line 32

def project_object_version
  @project_object_version
end