Hide shikimori sensitive information

This commit is contained in:
SkyfaceD
2022-05-17 15:40:34 +06:00
parent c2ba716916
commit 3be96cf035
3 changed files with 16 additions and 5 deletions

View File

@@ -23,6 +23,15 @@ allprojects {
}
}
Object localProperty(String name, Object defaultValue = 'null') {
Properties localProperties = new Properties()
project.rootProject.file('local.properties').withInputStream { localProperties.load(it) }
def value = localProperties[name]
return value != null ? value : defaultValue
}
task clean(type: Delete) {
delete rootProject.buildDir
}