1
0
Fork 0

db migrations

simplified the Add Word dialog

added a popup confirmation when there are new dictionary words
This commit is contained in:
sspanak 2024-02-19 14:29:13 +02:00 committed by Dimo Karaivanov
parent 0e8dfbe578
commit 4907671aa3
37 changed files with 497 additions and 313 deletions

View file

@ -25,12 +25,14 @@ tasks.register('copyLanguages', Copy) {
into LANGUAGES_OUTPUT_DIR
}
tasks.register('calculateDictionarySizes') {
tasks.register('writeDictionaryProperties') {
inputs.dir fileTree(dir: DICTIONARIES_INPUT_DIR)
outputs.dir DICTIONARIES_OUTPUT_DIR
doLast {
getDictionarySizes(DICTIONARIES_INPUT_DIR, DICTIONARIES_OUTPUT_DIR)
[getDictionarySizes, getDictionaryHashes].parallelStream().forEach { action ->
action(DICTIONARIES_INPUT_DIR, DICTIONARIES_OUTPUT_DIR)
}
}
}
@ -89,12 +91,12 @@ android {
applicationVariants.configureEach { variant ->
tasks.named("generate${variant.name.capitalize()}Assets")?.configure {
dependsOn(validateLanguages, copyLanguages, calculateDictionarySizes)
dependsOn(validateLanguages, copyLanguages, writeDictionaryProperties)
}
["lintAnalyzeDebug", "generateDebugLintReportModel", "lintVitalAnalyzeRelease", "generateReleaseLintVitalReportModel"].each { taskName ->
tasks.named(taskName)?.configure {
dependsOn(validateLanguages, copyLanguages, calculateDictionarySizes)
dependsOn(validateLanguages, copyLanguages, writeDictionaryProperties)
}
}