summaryrefslogtreecommitdiffhomepage
path: root/ui/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'ui/build.gradle.kts')
-rw-r--r--ui/build.gradle.kts18
1 files changed, 13 insertions, 5 deletions
diff --git a/ui/build.gradle.kts b/ui/build.gradle.kts
index 58a6a687..fff3acd9 100644
--- a/ui/build.gradle.kts
+++ b/ui/build.gradle.kts
@@ -1,4 +1,5 @@
@file:Suppress("UnstableApiUsage")
+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@@ -9,10 +10,11 @@ plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.kapt)
+ alias(libs.plugins.ajoberstar.grgit)
}
android {
- compileSdk = 33
+ compileSdk = 34
buildFeatures {
buildConfig = true
dataBinding = true
@@ -22,11 +24,13 @@ android {
defaultConfig {
applicationId = appID
minSdk = 21
- targetSdk = 33
+ targetSdk = 34
versionCode = providers.gradleProperty("wireguardVersionCode").get().toInt()
- versionName = providers.gradleProperty("wireguardVersionName").get()
+ versionName = grgit.describe {
+ tags = true
+ always = true
+ }.replace('-', '.')
buildConfigField("int", "MIN_SDK_VERSION", minSdk.toString())
- buildConfigField("boolean", "IS_GOOGLE_PLAY", false.toString())
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@@ -50,6 +54,7 @@ android {
resources {
excludes += "DebugProbesKt.bin"
excludes += "kotlin-tooling-metadata.json"
+ excludes += "META-INF/*.version"
}
}
}
@@ -60,9 +65,12 @@ android {
}
create("googleplay") {
initWith(getByName("release"))
- buildConfigField("boolean", "IS_GOOGLE_PLAY", true.toString())
+ matchingFallbacks += "release"
}
}
+ androidResources {
+ generateLocaleConfig = true
+ }
lint {
disable += "LongLogTag"
warning += "MissingTranslation"