diff --git a/app/build.gradle.kts b/app/build.gradle.kts index cdb2e79..c15f04e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -33,7 +33,7 @@ android { if (project.hasProperty("RELEASE_STORE_FILE")) { signingConfigs { - register("release") { + create("release") { storeFile = file(project.property("RELEASE_STORE_FILE")!!) storePassword = project.property("RELEASE_STORE_PASSWORD") as String? keyAlias = project.property("RELEASE_KEY_ALIAS") as String? @@ -47,10 +47,8 @@ android { } buildTypes { release { - signingConfig = if (project.hasProperty("RELEASE_STORE_FILE")) { - signingConfigs.getByName("release") - } else { - signingConfigs.getByName("debug") + if (project.hasProperty("RELEASE_STORE_FILE")) { + signingConfig = signingConfigs.getByName("release") } isMinifyEnabled = true