ConfigVersion

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

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

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

kiteConfig {
version("1.4.0") {
formula { v -> 1_000_000 * v.major + 10_000 * v.minor + 100 * v.patch + v.reupload }
}
}

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

FromField1.4.0 with rebuild = 2
versionmajor1
versionminor4
versionpatch0
android { rebuild } or ios { rebuild }reupload2

See also

for the formula that consumes these.

Constructors

Link copied to clipboard
constructor(major: Int, minor: Int, patch: Int, reupload: 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 to re-upload the same version to a store. Feeds the formula.

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.