ConfigVersion

class ConfigVersion(val major: Int, val minor: Int, val patch: Int, val rebuild: Int)

The four numbers KiteConfig hands to a build-number scheme.

version = "1.4.0" splits into major, minor, and patch. rebuild is the extra dial you turn when a store burns an upload. A scheme reads all four and returns one build number as text.

kiteConfig {
version = "1.4.0"
version {
scheme { v -> (1_000_000 * v.major + 10_000 * v.minor + 100 * v.patch + v.rebuild).toString() }
}
}

You never construct one. KiteConfig parses the version, adds the platform's rebuild dial, and passes the result into your lambda.

FromField1.4.0 with rebuild = 2
versionmajor1
versionminor4
versionpatch0
version { rebuild }rebuild2

See also

for the scheme that consumes these.

Constructors

Link copied to clipboard
constructor(major: Int, minor: Int, patch: Int, rebuild: Int)

Properties

Link copied to clipboard
val major: Int

First number of version, so 1 in 1.4.0. Range 0..999 in the default scheme.

Link copied to clipboard
val minor: Int

Second number of version, so 4 in 1.4.0. Range 0..999 in the default scheme.

Link copied to clipboard
val patch: Int

Third number of version, so 0 in 1.4.0. Range 0..99 in the default scheme.

Link copied to clipboard

Counter for re-uploading the same version to a store.

Functions

Link copied to clipboard
open override fun toString(): String

Diagnostic form only, such as 1.4.0+2. No store ever sees this text.