mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-16 11:16:12 -04:00
More version plumping
This commit is contained in:
@@ -14,13 +14,16 @@ object ProjectConfig {
|
|||||||
const val targetSdk = 33
|
const val targetSdk = 33
|
||||||
|
|
||||||
object Version {
|
object Version {
|
||||||
const val major = 2
|
val versionProperties = Properties().apply {
|
||||||
const val minor = 2
|
load(FileInputStream(File("version.properties")))
|
||||||
const val patch = 1
|
}
|
||||||
const val build = 0
|
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}"
|
val name = "${major}.${minor}.${patch}-rc${build}"
|
||||||
const val code = major * 10000000 + minor * 100000 + patch * 1000 + build * 10
|
val code = major * 10000000 + minor * 100000 + patch * 1000 + build * 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
# Project-wide Gradle settings.
|
||||||
|
# IDE (e.g. Android Studio) users:
|
||||||
|
# Gradle settings configured through the IDE *will override*
|
||||||
|
# any settings specified in this file.
|
||||||
|
# For more details on how to configure your build environment visit
|
||||||
|
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||||
|
# Specifies the JVM arguments used for the daemon process.
|
||||||
|
# The setting is particularly useful for tweaking memory settings.
|
||||||
|
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
||||||
|
# When configured, Gradle will run in incubating parallel mode.
|
||||||
|
# This option should only be used with decoupled projects. More details, visit
|
||||||
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||||
|
# org.gradle.parallel=true
|
||||||
|
# AndroidX package structure to make it clearer which packages are bundled with the
|
||||||
|
# Android operating system, and which are packaged with your app"s APK
|
||||||
|
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
||||||
|
android.useAndroidX=true
|
||||||
|
# Kotlin code style for this project: "official" or "obsolete":
|
||||||
|
kotlin.code.style=official
|
||||||
|
project.versioning.major=2
|
||||||
|
project.versioning.minor=2
|
||||||
|
project.versioning.patch=1
|
||||||
|
project.versioning.build=0
|
||||||
Reference in New Issue
Block a user