mirror of
https://github.com/netbirdio/android-client.git
synced 2026-09-23 09:30:52 -07:00
Reworks the Android UI, and brings over features the desktop client already had.
29 lines
1.1 KiB
Kotlin
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)
|
|
} |