STRUCT
CocoapodsDependencies
Contents
- Properties
reposgitReposdependencieslocalPodspecsdefaultForceLinkingforceLinking
- Methods
init(repos:gitRepos:dependencies:localPodspecs:defaultForceLinking:forceLinking:)==(_:_:)
public struct CocoapodsDependencies: Codable, EquatableA collection of external cocoapods dependencies
Properties
repos
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
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
public var dependencies: [Dependency]List of external dependencies
localPodspecs
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
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
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:)
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
==(_:_:)
public static func == (lhs: CocoapodsDependencies, rhs: CocoapodsDependencies) -> BoolParameters
| Name | Description |
|---|---|
| lhs | A value to compare. |
| rhs | Another value to compare. |
