Skip to content

Commit

Permalink
Add nobil api key handling in build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
robho committed Dec 6, 2024
1 parent 5da9389 commit 1c41fad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,17 @@ android {
if (goingelectricKey != null) {
resValue("string", "goingelectric_key", goingelectricKey)
}
val nobilKey =
System.getenv("NOBIL_API_KEY") ?: project.findProperty("NOBIL_API_KEY")?.toString()
if (nobilKey == null && project.hasProperty("NOBIL_API_KEY_ENCRYPTED")) {
nobilKey = decode(
project.findProperty("NOBIL_API_KEY_ENCRYPTED").toString(),
"FmK.d,-f*p+rD+WK!eds"
)
}
if (nobilKey != null) {
resValue("string", "nobil_key", nobilKey)
}
var openchargemapKey =
System.getenv("OPENCHARGEMAP_API_KEY") ?: project.findProperty("OPENCHARGEMAP_API_KEY")
?.toString()
Expand Down

0 comments on commit 1c41fad

Please sign in to comment.