Skip to content

Commit

Permalink
Fix signing config (#1126)
Browse files Browse the repository at this point in the history
* Upping version.

* Fixing signing config.
  • Loading branch information
dessalines authored Oct 25, 2024
1 parent c63d58c commit 53e69f1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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?
Expand All @@ -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
Expand Down Expand Up @@ -132,4 +130,4 @@ dependencies {

// App compat
implementation("androidx.appcompat:appcompat:1.7.0")
}
}

0 comments on commit 53e69f1

Please sign in to comment.