From 6139591bd11ffc2906270dcd8a7e4ba981613dbf Mon Sep 17 00:00:00 2001 From: Antoine POPINEAU Date: Tue, 22 Oct 2019 20:19:05 +0200 Subject: [PATCH] Fixed build script. --- app/build.gradle.kts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 9e263c2..c0d35bc 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,5 +1,6 @@ import org.gradle.kotlin.dsl.* import org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions +import org.jetbrains.kotlin.konan.properties.hasProperty import java.io.FileInputStream import java.util.* @@ -43,7 +44,7 @@ android { signingConfigs { create("release") { - if (props.contains("signing.store")) { + if (props.hasProperty("signing.store")) { storeFile = file(props.getProperty("signing.store")) storePassword = props.getProperty("signing.store_passphrase") keyAlias = props.getProperty("signing.alias").toString() @@ -74,7 +75,7 @@ ktlint { } play { - isEnabled = props.contains("play.credentials") + isEnabled = props.hasProperty("play.credentials") if (isEnabled) { serviceAccountCredentials = file(props.getProperty("play.credentials"))