From da7aef3a8817523d25fb4dc4d083b68022825d36 Mon Sep 17 00:00:00 2001 From: tkow Date: Thu, 1 Aug 2019 18:04:41 +0900 Subject: [PATCH] always set default value instead of .env --- android/dotenv.gradle | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/android/dotenv.gradle b/android/dotenv.gradle index 7a2df3b..00a09a0 100644 --- a/android/dotenv.gradle +++ b/android/dotenv.gradle @@ -22,8 +22,8 @@ def getCurrentFlavor() { } def loadDotEnv(flavor = getCurrentFlavor()) { - def envFile = ".env" + def envFile = project.hasProperty("defaultEnvFile") ? project.defaultEnvFile : ".env" if (System.env['ENVFILE']) { envFile = System.env['ENVFILE'] } else if (System.getProperty('ENVFILE')) { @@ -36,8 +36,6 @@ def loadDotEnv(flavor = getCurrentFlavor()) { return true } } - } else if (project.hasProperty("defaultEnvFile")) { - envFile = project.defaultEnvFile } def env = [:]