MutableVersionConstraint

A configurable version constraint. This is exposed to the build author, so that one can express more constraints on a module version.

Since

4.4

Functions

Link copied to clipboard
@Nullable
abstract fun getBranch(): String
Returns the branch to select versions from.
Link copied to clipboard
abstract fun getDisplayName(): String
Link copied to clipboard
abstract fun getPreferredVersion(): String
Link copied to clipboard
Link copied to clipboard
abstract fun getRequiredVersion(): String
Link copied to clipboard
abstract fun getStrictVersion(): String
Link copied to clipboard
abstract fun prefer(version: String)
Sets the preferred version of this module.
Link copied to clipboard
abstract fun reject(versions: Array<String>)
Declares a list of rejected versions.
Link copied to clipboard
abstract fun rejectAll()
Rejects all versions of this component.
Link copied to clipboard
abstract fun require(version: String)
Sets the required version of this module.
Link copied to clipboard
abstract fun setBranch(@Nullable branch: String)
Specifies the branch to select versions from.
Link copied to clipboard
abstract fun strictly(version: String)
Sets the version as strict.