mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
More version plumping
This commit is contained in:
@@ -14,13 +14,16 @@ object ProjectConfig {
|
||||
const val targetSdk = 33
|
||||
|
||||
object Version {
|
||||
const val major = 2
|
||||
const val minor = 2
|
||||
const val patch = 1
|
||||
const val build = 0
|
||||
val versionProperties = Properties().apply {
|
||||
load(FileInputStream(File("version.properties")))
|
||||
}
|
||||
val major = versionProperties.getProperty("project.versioning.major").toInt()
|
||||
val minor = versionProperties.getProperty("project.versioning.minor").toInt()
|
||||
val patch = versionProperties.getProperty("project.versioning.patch").toInt()
|
||||
val build = versionProperties.getProperty("project.versioning.build").toInt()
|
||||
|
||||
const val name = "${major}.${minor}.${patch}-rc${build}"
|
||||
const val code = major * 10000000 + minor * 100000 + patch * 1000 + build * 10
|
||||
val name = "${major}.${minor}.${patch}-rc${build}"
|
||||
val code = major * 10000000 + minor * 100000 + patch * 1000 + build * 10
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user