Companion

object Companion

Functions

build
Link copied to clipboard
fun build(requirement: Semver?): Requirement
Builds a requirement (will test that the version is equivalent to the requirement)
buildCocoapods
Link copied to clipboard
fun buildCocoapods(requirement: String): Requirement
Builds a requirement following the rules of Cocoapods.
buildIvy
Link copied to clipboard
fun buildIvy(requirement: String): Requirement
Builds a requirement following the rules of Ivy.
buildLoose
Link copied to clipboard
fun buildLoose(requirement: String?): Requirement
Builds a loose requirement (will test that the version is equivalent to the requirement)
buildNPM
Link copied to clipboard
fun buildNPM(requirement: String): Requirement
Builds a requirement following the rules of NPM.
buildStrict
Link copied to clipboard
fun buildStrict(requirement: String?): Requirement
Builds a strict requirement (will test that the version is equivalent to the requirement)
caretRequirement
Link copied to clipboard
fun caretRequirement(version: String?, type: Semver.SemverType): Requirement
Allows changes that do not modify the left-most non-zero digit in the major, minor, patch tuple.
hyphenRequirement
Link copied to clipboard
fun hyphenRequirement(lowerVersion: String?, upperVersion: String?, type: Semver.SemverType): Requirement
Creates a requirement that satisfies "x1.y1.z1 - x2.y2.z2".
tildeRequirement
Link copied to clipboard
fun tildeRequirement(version: String?, type: Semver.SemverType): Requirement
Allows patch-level changes if a minor version is specified on the comparator.