Skip to content

Commit

Permalink
Tweak handling of key.properties in build files
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusRodCosta committed Aug 25, 2024
1 parent a1e683f commit 3e67d0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import java.io.FileInputStream
import java.util.Properties

plugins {
Expand All @@ -8,7 +7,9 @@ plugins {

val keystorePropertiesFile = rootProject.file("key.properties")
val keystoreProperties = Properties()
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(keystorePropertiesFile.inputStream())
}

kotlin {
jvmToolchain(17)
Expand Down

0 comments on commit 3e67d0b

Please sign in to comment.