Files
android-client/build.gradle.kts
Zoltan Papp 1d40d8f095 Align the Android client with the iOS and desktop clients (#179)
Reworks the Android UI, and brings over features the desktop client already had.
2026-09-08 10:19:16 +02:00

29 lines
1.1 KiB
Kotlin

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.google.services) apply false
alias(libs.plugins.firebase.crashlytics) apply false
}
val versionPropsFile = file("version.properties")
val versionProps = java.util.Properties()
if (versionPropsFile.exists()) {
versionPropsFile.inputStream().use { stream ->
versionProps.load(stream)
}
}
// Check if versionName and versionCode are provided via command line
val cmdVersionCode = project.findProperty("versionCode")?.toString()?.toIntOrNull()
val cmdVersionName = project.findProperty("versionName") as String?
// Define the version properties in the extra properties extension
ext {
set("compileSdkVersion", 36)
set("minSdkVersion", 26)
set("targetSdkVersion", 36)
set("appVersionCode", cmdVersionCode ?: (versionProps["versionCode"] as String).toInt())
set("appVersionName", cmdVersionName ?: versionProps["versionName"] as String)
}