mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 08:15:02 +00:00
Address review
This commit is contained in:
@@ -117,3 +117,12 @@ fun Project.defaultLintOptions(lint: Lint) = lint.apply {
|
||||
ignoreTestFixturesSources = true
|
||||
checkGeneratedSources = false
|
||||
}
|
||||
|
||||
fun Project.environmentOrGradleValue(
|
||||
environmentVariableName: String,
|
||||
gradlePropertyName: String,
|
||||
defaultValue: String? = null,
|
||||
): String? = providers.environmentVariable(environmentVariableName)
|
||||
.orElse(providers.gradleProperty(gradlePropertyName))
|
||||
.orNull
|
||||
?: defaultValue
|
||||
|
||||
Reference in New Issue
Block a user