From 440b6e627acd532bfa63083bfb955c367faf480c Mon Sep 17 00:00:00 2001 From: Paul Woitaschek Date: Wed, 20 Mar 2024 21:42:39 +0100 Subject: [PATCH] Remove the transifex leftovers --- build.gradle.kts | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 736994c6be..89a68958f9 100755 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,37 +9,3 @@ plugins { tasks.wrapper { distributionType = Wrapper.DistributionType.ALL } - -tasks { - val pullStrings = register("pullStrings") { - executable = "tx" - args("pull", "--all") - } - val removeEmptyListings = register("removeEmptyListings") { - dependsOn(pullStrings) - mustRunAfter(pullStrings) - val listingsFolder = file("app/src/main/play/listings") - doLast { - (listingsFolder.listFiles()?.toList() ?: emptyList()) - .filter { it.isDirectory } - .filterNot { - // don't remove the source language - it.name == "en-US" - } - .forEach { language -> - val contents = language.listFiles()?.toList() ?: emptyList() - val requiredListings = listOf("full-description.txt", "short-description.txt", "title.txt") - .map { File(language, it) } - if (!contents.containsAll(requiredListings)) { - logger.warn("Missing translations for ${language.name}. Delete listing.") - language.deleteRecursively() - } - } - } - } - register("importStrings") { - dependsOn(pullStrings, removeEmptyListings) - mustRunAfter(pullStrings, removeEmptyListings) - finalizedBy(":app:lintDebug") - } -}