2017-07-29 06:10:37 +02:00
|
|
|
buildscript {
|
2020-03-09 14:30:14 +01:00
|
|
|
ext {
|
2021-07-25 18:10:59 +02:00
|
|
|
activityVersion = '1.2.4'
|
2021-03-29 09:24:03 +02:00
|
|
|
annotationsVersion = '1.2.0'
|
2021-07-25 18:10:59 +02:00
|
|
|
appcompatVersion = '1.3.1'
|
2021-03-29 09:24:03 +02:00
|
|
|
biometricVersion = '1.1.0'
|
2020-03-09 14:30:14 +01:00
|
|
|
collectionVersion = '1.1.0'
|
2020-11-09 12:31:54 +01:00
|
|
|
constraintLayoutVersion = '2.0.4'
|
2020-03-09 14:30:14 +01:00
|
|
|
coordinatorLayoutVersion = '1.1.0'
|
2021-07-17 22:54:23 +02:00
|
|
|
coreKtxVersion = '1.6.0'
|
|
|
|
coroutinesVersion = '1.5.1'
|
2021-07-25 18:10:59 +02:00
|
|
|
datastoreVersion = '1.0.0-rc02'
|
2021-05-27 18:18:03 +02:00
|
|
|
desugarVersion = '1.1.5'
|
2021-07-25 18:10:59 +02:00
|
|
|
fragmentVersion = '1.3.6'
|
2020-03-09 14:30:14 +01:00
|
|
|
jsr305Version = '3.0.2'
|
2021-03-29 09:24:03 +02:00
|
|
|
junitVersion = '4.13.2'
|
2021-05-05 08:59:23 +02:00
|
|
|
lifecycleRuntimeKtxVersion = '2.3.1'
|
2021-07-17 22:54:23 +02:00
|
|
|
materialComponentsVersion = '1.4.0'
|
2020-04-18 22:38:41 +02:00
|
|
|
preferenceVersion = '1.1.1'
|
2021-03-29 09:24:03 +02:00
|
|
|
zxingEmbeddedVersion = '4.2.0'
|
2020-03-10 15:58:29 +01:00
|
|
|
|
|
|
|
groupName = 'com.wireguard.android'
|
2020-03-09 14:30:14 +01:00
|
|
|
}
|
2017-07-29 06:10:37 +02:00
|
|
|
}
|
|
|
|
|
2020-11-07 14:32:21 +01:00
|
|
|
plugins {
|
|
|
|
id "de.undercouch.download" version "4.1.1"
|
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-29 06:10:37 +02:00
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
|
|
|
}
|
2019-09-27 09:29:40 +02:00
|
|
|
|
|
|
|
tasks {
|
|
|
|
wrapper {
|
2021-07-17 22:54:21 +02:00
|
|
|
gradleVersion = "7.1.1"
|
2021-07-29 06:30:53 +02:00
|
|
|
distributionSha256Sum = "bf8b869948901d422e9bb7d1fa61da6a6e19411baa7ad6ee929073df85d6365d"
|
2019-09-27 09:29:40 +02:00
|
|
|
}
|
|
|
|
}
|
2020-03-10 04:54:27 +01:00
|
|
|
|
2020-03-10 08:15:06 +01:00
|
|
|
apply from: "version.gradle"
|