Translate tasks.

This commit is contained in:
Alan Evans
2019-11-07 08:58:27 -05:00
parent e4406621ed
commit 840997cb7d
2 changed files with 74 additions and 13 deletions

View File

@@ -23,6 +23,7 @@ buildscript {
apply plugin: 'com.android.application'
apply plugin: 'androidx.navigation.safeargs'
apply plugin: 'witness'
apply from: 'translations.gradle'
apply from: 'witness-verifications.gradle'
repositories {
@@ -431,19 +432,6 @@ def getLastCommitTimestamp() {
}
}
/**
* Discovers supported languages listed as under the res/values- directory.
*/
static def autoResConfig() {
def files = new ArrayList<String>()
def root = new File('res')
root.eachFile { f -> files.add(f.name) }
['en'] + files.collect { f -> f =~ /^values-([a-z]{2}(-r[A-Z]{2})?)$/ }
.findAll { matcher -> matcher.find() }
.collect { matcher -> matcher.group(1) }
.sort()
}
task qa {
group 'Verification'
description 'Quality Assurance. Run before pushing.'