Dependency

public final class Dependency: CustomStringConvertible, Codable

An external package that the current project relies on. These are stored in the manifest’s dependencies array.

  • Updates the dependency’s instance in the project’s manifest. If the instance does not exist yet, it will be created.

    Throws

    Errors that occur when creating a RegEx pattern or reading or writing the manifest.

    Declaration

    Swift

    public func save() throws
  • Removes the dependency instance from the manifest’s Package.dependencies array.

    Throws

    Errors that occur when creating a RegEx pattern or reading or writing the manifest.

    Declaration

    Swift

    public func delete() throws