Skip to content

Commit fe0d719

Browse files
committed
Nobil: Add real-time availability support
1 parent ba17cb9 commit fe0d719

File tree

9 files changed

+1088
-5
lines changed

9 files changed

+1088
-5
lines changed

_ci/apikeys-ci.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
<string name="nobil_key" translatable="false">ci</string>
99
<string name="fronyx_key" translatable="false">ci</string>
1010
<string name="acra_credentials" translatable="false">ci:ci</string>
11+
<string name="evmap_key" translatable="false">ci</string>
1112
</resources>

app/build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,17 @@ android {
129129

130130
// add API keys from environment variable if not set in apikeys.xml
131131
applicationVariants.all {
132+
var evmapKey =
133+
System.getenv("EVMAP_API_KEY") ?: project.findProperty("EVMAP_API_KEY")?.toString()
134+
if (evmapKey == null && project.hasProperty("EVMAP_API_KEY_ENCRYPTED")) {
135+
evmapKey = decode(
136+
project.findProperty("EVMAP_API_KEY_ENCRYPTED").toString(),
137+
"FmK.d,-f*p+rD+WK!eds"
138+
)
139+
}
140+
if (evmapKey != null) {
141+
resValue("string", "evmap_key", evmapKey)
142+
}
132143
val goingelectricKey =
133144
System.getenv("GOINGELECTRIC_API_KEY") ?: project.findProperty("GOINGELECTRIC_API_KEY")
134145
?.toString()

0 commit comments

Comments
 (0)