SnapEnhance/build.gradle.kts
Caner Karaca 6105429a2a
chore: update dependencies (#1062)
Co-authored-by: rhunk <101876869+rhunk@users.noreply.github.com>
2024-06-01 10:09:03 +02:00

27 lines
957 B
Plaintext

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.kotlinAndroid) apply false
alias(libs.plugins.compose.compiler) apply false
}
var versionName = "2.1.0"
var versionCode = 210
rootProject.ext.set("appVersionName", versionName)
rootProject.ext.set("appVersionCode", versionCode)
rootProject.ext.set("applicationId", "me.rhunk.snapenhance")
rootProject.ext.set("buildHash", properties["debug_build_hash"] ?: java.security.SecureRandom().nextLong(1000000000, 99999999999).toString(16))
tasks.register("getVersion") {
doLast {
val versionFile = File("app/build/version.txt")
versionFile.parentFile.mkdirs()
if (!versionFile.exists()) {
versionFile.createNewFile()
}
versionFile.writeText(versionName)
}
}