Fix a bug such that different .env can be read according to android flavour (#195)
This commit is contained in:
parent
74a6c8df09
commit
7f59748c0b
|
@ -33,7 +33,7 @@ def loadDotEnv(flavor = getCurrentFlavor()) {
|
|||
} else if (project.hasProperty("envConfigFiles")) {
|
||||
// use startsWith because sometimes the task is "generateDebugSources", so we want to match "debug"
|
||||
project.ext.envConfigFiles.any { pair ->
|
||||
if (currentFlavor.startsWith(pair.key)) {
|
||||
if (flavor.startsWith(pair.key)) {
|
||||
envFile = pair.value
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue