Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
Signed-off-by: Hendrix-Shen <[email protected]>
  • Loading branch information
Hendrix-Shen committed Apr 9, 2024
1 parent 5cf9c0f commit de72fc1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ ext {
}

getOrDefault = { String key, String defaultValue ->
String value
(value = ext.getProperty(key)) && !value.isEmpty() ? value : defaultValue
if (!ext.has(key)) {
return defaultValue
}

String value = ext.getProperty(key)
return value.isEmpty() ? defaultValue : value
}
}

Expand Down

0 comments on commit de72fc1

Please sign in to comment.