DependencyVersionType

public enum DependencyVersionType: CustomStringConvertible

The version syntax optionas that can be used when defining a dependency instance.

  • from: "1.0.0"

    Declaration

    Swift

    case from(String)
  • .upToNextMajor(from: "1.5.8")

    Declaration

    Swift

    case upToNextMajor(String)
  • .exact("1.5.8")

    Declaration

    Swift

    case exact(String)
  • "1.2.3"..<"1.2.6". Instead of just storing version numbers in this case, you need to include the whole range.

    Declaration

    Swift

    case range(String)
  • .branch("develop")

    Declaration

    Swift

    case branch(String)
  • .revision("e74b07278b926c9ec6f9643455ea00d1ce04a021")

    Declaration

    Swift

    case revision(String)
  • Creates a version instance from a version instance from a manifest’s dependency.

    Declaration

    Swift

    public init(from version: String)throws

    Parameters

    version

    The version instance. See the docs for the cases for examples.

  • The version formatted for the manifest.

    Declaration

    Swift

    public var description: String