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.kts12
1 files changed, 11 insertions, 1 deletions
diff --git a/ui/build.gradle.kts b/ui/build.gradle.kts
index 8375e726..22bfe813 100644
--- a/ui/build.gradle.kts
+++ b/ui/build.gradle.kts
@@ -4,6 +4,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val pkg: String = providers.gradleProperty("wireguardPackageName").get()
+val appID: String = providers.gradleProperty("wireguardApplicationID").get()
plugins {
alias(libs.plugins.android.application)
@@ -21,7 +22,7 @@ android {
}
namespace = pkg
defaultConfig {
- applicationId = pkg
+ applicationId = appID
minSdk = 21
targetSdk = 33
versionCode = providers.gradleProperty("wireguardVersionCode").get().toInt()
@@ -36,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
@@ -51,6 +60,7 @@ android {
debug {
applicationIdSuffix = ".debug"
versionNameSuffix = "-debug"
+ signingConfig = signingConfigs.getByName("debug")
}
}
lint {