Skip to content

STRUCT

DependenciesGraph

Contents

  • Properties
    • externalDependencies
    • externalProjects
    • externalFrameworkDependencies
    • tree
    • none
  • Methods
    • init(externalDependencies:externalProjects:externalFrameworkDependencies:tree:)
swift
public struct DependenciesGraph: Equatable, Codable

Properties

externalDependencies

swift
public let externalDependencies: [String: [TargetDependency]]

A dictionary where the keys are the supported platforms and the values are dictionaries where the keys are the names of dependencies, and the values are the dependencies themselves.

externalProjects

swift
public let externalProjects: [AbsolutePath: Project]

A dictionary where the keys are the folder of external projects, and the values are the projects themselves.

externalFrameworkDependencies

swift
public let externalFrameworkDependencies: [AbsolutePath: [TargetDependency]]

tree

swift
public let tree: [String: TreeDependency]

none

swift
public static let none: DependenciesGraph = .init(
    externalDependencies: [:],
    externalProjects: [:],
    externalFrameworkDependencies: [:],
    tree: [:]
)

An empty DependenciesGraph.

Methods

init(externalDependencies:externalProjects:externalFrameworkDependencies:tree:)

swift
public init(
    externalDependencies: [String: [TargetDependency]],
    externalProjects: [AbsolutePath: Project],
    externalFrameworkDependencies: [AbsolutePath: [TargetDependency]],
    tree: [String: TreeDependency]
)

Create an instance of DependenciesGraph model.