diff --git a/android/build.gradle b/android/build.gradle index 0d1e782..0cad623 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -29,16 +29,16 @@ ext.getConfig = { String name -> return localProperties.getProperty(name) } } - if (project.hasProperty(name)) { - return project.getProperty(name) + def env = System.getenv(name) + if (env != null) { + return env } def prop = System.getProperty(name) if (prop != null) { return prop } - def env = System.getenv(name) - if (env != null) { - return env + if (project.hasProperty(name)) { + return project.getProperty(name) } println("Getting env variable failed, returning empty: set $name as environment variable or as system property in your ~/.gradle/gradle.properties")