gradle: remove crowdin kludge

This never ended up being used over the shell script

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2022-06-15 12:49:12 +05:30
parent 960bc99f5e
commit c3693b3e66
No known key found for this signature in database
GPG Key ID: 366D7BBAD1031E80
1 changed files with 0 additions and 33 deletions

View File

@ -23,39 +23,6 @@ buildscript {
}
}
plugins {
id "de.undercouch.download" version "5.0.4"
}
task downloadCrowdin(type: Download) {
src 'https://crowdin.com/backend/download/project/wireguard.zip'
dest file('build/translations.zip')
overwrite true
}
task cleanCrowdin(type: Delete) {
delete 'ui/src/main/res/values-*/strings.xml'
}
task extractCrowdin(type: Copy, dependsOn: ['downloadCrowdin', 'cleanCrowdin']) {
mustRunAfter 'downloadCrowdin'
from zipTree(file('build/translations.zip'))
into file('build/translations')
doFirst {
delete 'build/translations'
}
}
task crowdin(type: Copy, dependsOn: ['extractCrowdin']) {
mustRunAfter 'extractCrowdin'
from 'build/translations/wireguard-android/ui/src/main/res'
into 'ui/src/main/res/'
doLast {
delete 'build/translations'
delete 'build/translations.zip'
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}