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") - } -}