Class: Xcodeproj::Project::Object::XCSwiftPackageProductDependency

Inherits:
AbstractObject
  • Object
show all
Defined in:
lib/xcodeproj/project/object/swift_package_product_dependency.rb

Overview

This class represents a Swift package product dependency.

Attributes collapse

Attributes inherited from AbstractObject

#isa, #project, #uuid

AbstractObject Hooks collapse

Methods inherited from AbstractObject

#<=>, #==, #ascii_plist_annotation, #inspect, isa, #nested_object_for_hash, #pretty_print, #remove_from_project, #sort, #sort_recursively, #to_ascii_plist, #to_hash

Instance Attribute Details

#packageXCRemoteSwiftPackageReference, XCLocalSwiftPackageReference

Returns the Swift package reference.

Returns:



11
# File 'lib/xcodeproj/project/object/swift_package_product_dependency.rb', line 11

has_one :package, [XCRemoteSwiftPackageReference, XCLocalSwiftPackageReference]

#product_nameString

Returns the product name of this Swift package.

Returns:

  • (String)

    the product name of this Swift package.



15
# File 'lib/xcodeproj/project/object/swift_package_product_dependency.rb', line 15

attribute :product_name, String

Instance Method Details

#display_nameString

Returns the name of the Swift package product dependency.

Returns:

  • (String)

    the name of the Swift package product dependency.



22
23
24
25
# File 'lib/xcodeproj/project/object/swift_package_product_dependency.rb', line 22

def display_name
  return product_name if product_name
  super
end