Skip to content

STRUCT

CocoapodsDependencies

Contents

  • Properties
    • repos
    • gitRepos
    • dependencies
    • localPodspecs
    • defaultForceLinking
    • forceLinking
  • Methods
    • init(repos:gitRepos:dependencies:localPodspecs:defaultForceLinking:forceLinking:)
    • ==(_:_:)
swift
public struct CocoapodsDependencies: Codable, Equatable

A collection of external cocoapods dependencies

Properties

repos

swift
public var repos: [String]

Collection of cocoapods CDN specs repositories

Repositories at the top have more priority when searching podspecs. CDN specs repositories are always have more priority than Git specs repositories.

gitRepos

swift
public var gitRepos: [String]

Collection of cocoapods Git specs repositories

Repositories at the top have more priority when searching podspecs. CDN specs repositories are always have more priority than Git specs repositories.

dependencies

swift
public var dependencies: [Dependency]

List of external dependencies

localPodspecs

swift
public var localPodspecs: [FilePath: [FilePath]]?

List of local podspecs, that need to participate in dependency resolution.

This may be the case when external module depends on local one. Key is source_root path, value is an array of globs to podspec files.

defaultForceLinking

swift
public var defaultForceLinking: Linking?

Default linkage type for all cocoapods dependencies

When specified, changes linkage type for all cocoapods dependencies, unless specified in forceLinking

forceLinking

swift
public var forceLinking: [String: Linking]?

Linkage type for specific cocoapods dependencies

Key - name of dependency, value - linkage

Methods

init(repos:gitRepos:dependencies:localPodspecs:defaultForceLinking:forceLinking:)

swift
public init(
    repos: [String],
    gitRepos: [String] = [],
    dependencies: [Dependency],
    localPodspecs: [FilePath: [FilePath]]? = nil,
    defaultForceLinking: Linking? = nil,
    forceLinking: [String: Linking]? = nil
)

Creates a new CocoapodsDependencies instance.

  • Parameters
    • repos: Collection of CDN repositories
    • gitRepos: Collection of Git repositories
    • dependencies: External dependencies
    • localPodspecs: List of local podspecs that need to participate in dependency resolution. This may be the case when external module depends on local one.
    • defaultForceLinking: Default linkage type for all cocoapods dependencies
    • forceLinking: Linkage type for specific cocoapods dependencies

==(_:_:)

swift
public static func == (lhs: CocoapodsDependencies, rhs: CocoapodsDependencies) -> Bool

Parameters

NameDescription
lhsA value to compare.
rhsAnother value to compare.