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.kts17
1 files changed, 13 insertions, 4 deletions
diff --git a/ui/build.gradle.kts b/ui/build.gradle.kts
index 34a32d5b..fff3acd9 100644
--- a/ui/build.gradle.kts
+++ b/ui/build.gradle.kts
@@ -2,9 +2,9 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
-import com.android.build.gradle.tasks.ExtractSupportedLocalesTask
val pkg: String = providers.gradleProperty("wireguardPackageName").get()
+val appID: String = providers.gradleProperty("wireguardApplicationID").get()
plugins {
alias(libs.plugins.android.application)
@@ -14,7 +14,7 @@ plugins {
}
android {
- compileSdk = 33
+ compileSdk = 34
buildFeatures {
buildConfig = true
dataBinding = true
@@ -22,9 +22,9 @@ android {
}
namespace = pkg
defaultConfig {
- applicationId = pkg
+ applicationId = appID
minSdk = 21
- targetSdk = 33
+ targetSdk = 34
versionCode = providers.gradleProperty("wireguardVersionCode").get().toInt()
versionName = grgit.describe {
tags = true
@@ -37,6 +37,14 @@ android {
targetCompatibility = JavaVersion.VERSION_17
isCoreLibraryDesugaringEnabled = true
}
+ signingConfigs {
+ named("debug") {
+ storeFile = File("/src/wireguard-android/keystore/debug.keystore")
+ storePassword = "android"
+ keyAlias = "androiddebugkey"
+ keyPassword = "android"
+ }
+ }
buildTypes {
release {
isMinifyEnabled = true
@@ -53,6 +61,7 @@ android {
debug {
applicationIdSuffix = ".debug"
versionNameSuffix = "-debug"
+ signingConfig = signingConfigs.getByName("debug")
}
create("googleplay") {
initWith(getByName("release"))