diff options
author | Arne Schwabe <arne@rfc2549.org> | 2019-12-11 13:45:44 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2019-12-11 13:45:44 +0100 |
commit | bf51eb4fb55c625fa32fc8c7091ed6062d96e0e0 (patch) | |
tree | 7f05e6bc403e108812300c596a4d655148057cb8 | |
parent | 04349fdb83a27702638fb821e234edc639fb62d3 (diff) |
Use debug singing for release if icsopenvpnDebugSign is set
-rw-r--r-- | build.gradle.kts | 2 | ||||
-rw-r--r-- | main/build.gradle.kts | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 9c542106..1ede308f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,7 +10,7 @@ buildscript { jcenter() } dependencies { - classpath("com.android.tools.build:gradle:3.5.2") + classpath("com.android.tools.build:gradle:3.5.3") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50") } } diff --git a/main/build.gradle.kts b/main/build.gradle.kts index a484957e..7fee6c0a 100644 --- a/main/build.gradle.kts +++ b/main/build.gradle.kts @@ -65,6 +65,7 @@ android { val keystoreAlias: String? by project keyAlias = keystoreAlias } + } lintOptions { @@ -75,7 +76,12 @@ android { buildTypes { getByName("release") { - signingConfig = signingConfigs.getByName("release") + if (project.hasProperty("icsopenvpnDebugSign")) { + logger.warn("property icsopenvpnDebugSign set, using debug signing for release") + signingConfig = android.signingConfigs.getByName("debug") + } else { + signingConfig = signingConfigs.getByName("release") + } } } |