parent
959a9adf26
commit
8616dad049
|
@ -160,18 +160,13 @@ android(
|
|||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
var testOnLive = false
|
||||
val testEnvUrl = if (project.hasProperty("testEnv")) {
|
||||
when (project.properties["testEnv"]) {
|
||||
"local" -> "${privateProperties["local_endpointUrl"]}"
|
||||
"test" -> "${privateProperties["test_endpointUrl"]}"
|
||||
else -> {
|
||||
testOnLive = true
|
||||
"${privateProperties["live_endpointUrl"]}"
|
||||
}
|
||||
val testEnvUrl = when (project.properties["testEnv"] ?: "live") {
|
||||
"local" -> "${privateProperties["local_endpointUrl"]}"
|
||||
"test" -> "${privateProperties["test_endpointUrl"]}"
|
||||
else -> {
|
||||
testOnLive = true
|
||||
"${privateProperties["live_endpointUrl"]}"
|
||||
}
|
||||
} else {
|
||||
testOnLive = true
|
||||
"${privateProperties["live_endpointUrl"]}"
|
||||
}
|
||||
|
||||
buildConfigField("String", "TEST_ENDPOINT_URL", "\"$testEnvUrl\"")
|
||||
|
|
Loading…
Reference in New Issue