Skip to content

Commit 53e69f1

Browse files
authored
Fix signing config (#1126)
* Upping version. * Fixing signing config.
1 parent c63d58c commit 53e69f1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

app/build.gradle.kts

+6-8
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ android {
1313
applicationId = "com.dessalines.thumbkey"
1414
minSdk = 21
1515
targetSdk = 34
16-
versionCode = 117
17-
versionName = "3.4.16"
16+
versionCode = 118
17+
versionName = "4.0.0"
1818

1919
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2020
vectorDrawables {
@@ -33,7 +33,7 @@ android {
3333

3434
if (project.hasProperty("RELEASE_STORE_FILE")) {
3535
signingConfigs {
36-
register("release") {
36+
create("release") {
3737
storeFile = file(project.property("RELEASE_STORE_FILE")!!)
3838
storePassword = project.property("RELEASE_STORE_PASSWORD") as String?
3939
keyAlias = project.property("RELEASE_KEY_ALIAS") as String?
@@ -47,10 +47,8 @@ android {
4747
}
4848
buildTypes {
4949
release {
50-
signingConfig = if (project.hasProperty("RELEASE_STORE_FILE")) {
51-
signingConfigs.getByName("release")
52-
} else {
53-
signingConfigs.getByName("debug")
50+
if (project.hasProperty("RELEASE_STORE_FILE")) {
51+
signingConfig = signingConfigs.getByName("release")
5452
}
5553

5654
isMinifyEnabled = true
@@ -132,4 +130,4 @@ dependencies {
132130

133131
// App compat
134132
implementation("androidx.appcompat:appcompat:1.7.0")
135-
}
133+
}

0 commit comments

Comments
 (0)