Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
Set release signingConfig to null when there is no storeFile
Browse files Browse the repository at this point in the history
  • Loading branch information
adamszewe committed Dec 28, 2023
1 parent a75496d commit c370020
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ android {
isMinifyEnabled = false
}
getByName("release") {
signingConfig = signingConfigs.getByName("release")
signingConfig = signingConfigs.runCatching { getByName("release") }
.getOrNull()
.takeIf { it?.storeFile != null }
}
}

Expand Down

0 comments on commit c370020

Please sign in to comment.