Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always set default value instead of .env #373

Merged
merged 1 commit into from Mar 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions android/dotenv.gradle
Expand Up @@ -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')) {
Expand All @@ -36,8 +36,6 @@ def loadDotEnv(flavor = getCurrentFlavor()) {
return true
}
}
} else if (project.hasProperty("defaultEnvFile")) {
envFile = project.defaultEnvFile
}

def env = [:]
Expand Down