Skip to content

Commit

Permalink
Merge pull request #13 from nevissecurity/feature/NEVISACCESSAPP-5452-…
Browse files Browse the repository at this point in the history
…local-properties-plus-previous-property-retrieval-order

NEVISACCESSAPP-5452: Leave the recently added retrieval from local.properties at t…
  • Loading branch information
balazs-gerlei authored Jan 23, 2024
2 parents 36f45cb + 2b10b45 commit f93bd72
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f93bd72

Please sign in to comment.