From 53e69f1c9a0e43d48d29468e075b80560638b9d9 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 25 Oct 2024 16:57:26 -0400 Subject: [PATCH] Fix signing config (#1126) * Upping version. * Fixing signing config. --- app/build.gradle.kts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a1f8f8dbc..f2825fd69 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -13,8 +13,8 @@ android { applicationId = "com.dessalines.thumbkey" minSdk = 21 targetSdk = 34 - versionCode = 117 - versionName = "3.4.16" + versionCode = 118 + versionName = "4.0.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { @@ -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 @@ -132,4 +130,4 @@ dependencies { // App compat implementation("androidx.appcompat:appcompat:1.7.0") -} \ No newline at end of file +}