Merge pull request #275 from Kabangi/master

Fix envConfigFiles in build.gradle not working
This commit is contained in:
Eric Kreutzer 2018-11-29 14:04:40 -08:00 committed by GitHub
commit 0c671a5b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,6 @@ def loadDotEnv(flavor = getCurrentFlavor()) {
envFile = System.env['ENVFILE']
} else if (System.getProperty('ENVFILE')) {
envFile = System.getProperty('ENVFILE')
} else if (project.hasProperty("defaultEnvFile")) {
envFile = project.defaultEnvFile
} else if (project.hasProperty("envConfigFiles")) {
// use startsWith because sometimes the task is "generateDebugSources", so we want to match "debug"
project.ext.envConfigFiles.any { pair ->
@ -38,6 +36,8 @@ def loadDotEnv(flavor = getCurrentFlavor()) {
return true
}
}
} else if (project.hasProperty("defaultEnvFile")) {
envFile = project.defaultEnvFile
}
def env = [:]