Class: Pod::Installer::Analyzer::TargetInspectionResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_definition, project, project_target_uuids, build_configurations, platform, archs) ⇒ TargetInspectionResult

Initialize a new instance

Parameters:

  • target_definition (TargetDefinition)

    @see #target_definition

  • project (Xcodeproj::Project)

    @see #project

  • project_target_uuids (Array<String>)

    @see #project_target_uuids

  • build_configurations (Hash{String=>Symbol})

    @see #build_configurations

  • platform (Platform)

    @see #platform

  • archs (Array<String>)

    @see #archs



46
47
48
49
50
51
52
53
54
# File 'lib/cocoapods/installer/analyzer/target_inspection_result.rb', line 46

def initialize(target_definition, project, project_target_uuids, build_configurations, platform, archs)
  @target_definition = target_definition
  @project = project
  @project_target_uuids = project_target_uuids
  @build_configurations = build_configurations
  @platform = platform
  @archs = archs
  @client_root = Pathname.new(project.project_dir + project.root_object.project_dir_path).realpath
end

Instance Attribute Details

#archsArray<String> (readonly)

Returns the architectures used by user's targets.

Returns:

  • (Array<String>)

    the architectures used by user's targets



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

def archs
  @archs
end

#build_configurationsHash{String=>Symbol} (readonly)

Returns A hash representing the user build configurations where 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 the user build configurations where each key corresponds to the name of a configuration and its value to its type (:debug or :release).



23
24
25
# File 'lib/cocoapods/installer/analyzer/target_inspection_result.rb', line 23

def build_configurations
  @build_configurations
end

#client_rootPathname (readonly)

Returns the path to the root of the project containing the user target.

Returns:

  • (Pathname)

    the path to the root of the project containing the user target



35
36
37
# File 'lib/cocoapods/installer/analyzer/target_inspection_result.rb', line 35

def client_root
  @client_root
end

#platformPlatform (readonly)

Returns the platform of the user targets.

Returns:

  • (Platform)

    the platform of the user targets



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

def platform
  @platform
end

#projectXcodeproj::Project (readonly)

Returns the user's Xcode project.

Returns:

  • (Xcodeproj::Project)

    the user's Xcode project



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

def project
  @project
end

#project_target_uuidsArray<String> (readonly)

Returns the uuid of the user's targets.

Returns:

  • (Array<String>)

    the uuid of the user's targets



16
17
18
# File 'lib/cocoapods/installer/analyzer/target_inspection_result.rb', line 16

def project_target_uuids
  @project_target_uuids
end

#target_definitionTargetDefinition (readonly)

Returns the target definition, whose project was inspected.

Returns:

  • (TargetDefinition)

    the target definition, whose project was inspected



8
9
10
# File 'lib/cocoapods/installer/analyzer/target_inspection_result.rb', line 8

def target_definition
  @target_definition
end