Version

constructor(major: Int, minor: Int, patch: Int, build: Int = 0, release: ReleaseType = ReleaseType.None)

Represents a simple version class to use for versioning.

Parameters

major

The major version.

minor

The minor version.

patch

The patch version.

build

The build version, this is only needed if the ReleaseType is not None.

release

The release type to use for the finalized result. Defaults to ReleaseType.None.


constructor(major: Int, minor: Int, patch: Int, release: ReleaseType = ReleaseType.None, showPatchNumber: Boolean = false)

Represents a simple version class to use for versioning.

Parameters

major

The major version.

minor

The minor version.

patch

The patch version.

release

The release type to use for the finalized result. Defaults to ReleaseType.None.

showPatchNumber

If the patch number should be shown or not if patch is 0


constructor(major: Int, minor: Int, patch: Int, release: ReleaseType = ReleaseType.None)

Represents a simple version class to use for versioning.

Parameters

major

The major version.

minor

The minor version.

patch

The patch version.

release

The release type to use for the finalized result. Defaults to ReleaseType.None.


constructor(major: Int, minor: Int, patch: Int, build: Int = 0, release: ReleaseType = ReleaseType.None, showPatchNumber: Boolean = false)

Parameters

major

The major version.

minor

The minor version.

patch

The patch version.

build

The build version, this is only needed if the ReleaseType is not None.

release

The release type to use for the finalized result. Defaults to ReleaseType.None.

showPatchNumber

If the patch number should be shown or not if patch is 0