Skip to content

ENUM

CocoapodsDependencies.Dependency

Contents

  • Cases
    • cdn(name:requirement:source:)
    • git(name:_:ref:)
    • path(name:path:)
    • gitRepo(name:requirement:source:)
  • Properties
    • name
  • Methods
    • <(_:_:)
swift
public enum Dependency: Codable, Hashable, Comparable

Cases

cdn(name:requirement:source:)

swift
case cdn(name: String, requirement: Requirement, source: String? = nil)

Dependency from CDN repository.

  • Parameters:
    • name: Name of the pod
    • requirement: Version requirment
    • source: Repo name. If nil, then searches the repositories in the order specified in repos.

git(name:_:ref:)

swift
case git(name: String, _ source: String, ref: GitRef)

Dependency from Git repository.

  • Parameters:
    • name: Name of the pod
    • source: Url to git repository
    • ref: Git reference (branch, tag or commit)

path(name:path:)

swift
case path(name: String, path: FilePath)

Local Dependency.

  • Parameters:
    • name: Name of the pod
    • path: Absolute or relative path to the pod

gitRepo(name:requirement:source:)

swift
case gitRepo(name: String, requirement: Requirement, source: String? = nil)

Dependency from Git Specs repository.

  • Parameters:
    • name: Name of the pod
    • requirement: Version requirment
    • source: Repo name. If nil, then searches the repositories in the order specified in gitRepos.

Properties

name

swift
public var name: String

Methods

<(_:_:)

swift
public static func < (lhs: Dependency, rhs: Dependency) -> Bool

Parameters

NameDescription
lhsA value to compare.
rhsAnother value to compare.