diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f4807ec79..2fc5ef4bc 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -71,7 +71,7 @@ android { } } signingConfigs { - named("release") { + maybeCreate("release").apply { storeFile = rootProject.file(Objects.requireNonNull(properties.getProperty("storeFile"))) storePassword = System.getenv("KEYSTORE_PWD") keyAlias = Objects.requireNonNull(properties.getProperty("keyAlias")) @@ -79,7 +79,7 @@ android { } } buildTypes { - named("release") { + maybeCreate("release").apply { this.signingConfig = signingConfigs.findByName("release") } }