2017-07-29 06:10:37 +02:00
|
|
|
buildscript {
|
2020-03-09 14:30:14 +01:00
|
|
|
ext {
|
2021-10-27 21:27:31 +02:00
|
|
|
activityVersion = '1.4.0'
|
2022-01-08 10:43:48 +01:00
|
|
|
annotationsVersion = '1.3.0'
|
2022-01-28 17:36:06 +01:00
|
|
|
appcompatVersion = '1.4.1'
|
2021-03-29 09:24:03 +02:00
|
|
|
biometricVersion = '1.1.0'
|
2022-01-08 10:43:48 +01:00
|
|
|
collectionVersion = '1.2.0'
|
2022-01-28 17:36:06 +01:00
|
|
|
constraintLayoutVersion = '2.1.3'
|
|
|
|
coordinatorLayoutVersion = '1.2.0'
|
2021-10-27 21:27:31 +02:00
|
|
|
coreKtxVersion = '1.7.0'
|
2022-01-08 10:43:48 +01:00
|
|
|
coroutinesVersion = '1.6.0'
|
2021-09-24 08:24:59 +02:00
|
|
|
datastoreVersion = '1.0.0'
|
2021-05-27 18:18:03 +02:00
|
|
|
desugarVersion = '1.1.5'
|
2022-01-28 17:36:06 +01:00
|
|
|
fragmentVersion = '1.4.1'
|
2020-03-09 14:30:14 +01:00
|
|
|
jsr305Version = '3.0.2'
|
2021-03-29 09:24:03 +02:00
|
|
|
junitVersion = '4.13.2'
|
2022-03-03 07:22:56 +01:00
|
|
|
lifecycleRuntimeKtxVersion = '2.4.1'
|
2022-01-28 17:36:06 +01:00
|
|
|
materialComponentsVersion = '1.5.0'
|
|
|
|
preferenceVersion = '1.2.0'
|
2021-10-25 19:07:01 +02:00
|
|
|
zxingEmbeddedVersion = '4.3.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 {
|
2022-03-03 07:22:56 +01:00
|
|
|
id "de.undercouch.download" version "5.0.1"
|
2020-11-07 14:32:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2022-01-08 10:35:50 +01:00
|
|
|
gradleVersion = "7.3.3"
|
|
|
|
distributionSha256Sum = "b586e04868a22fd817c8971330fec37e298f3242eb85c374181b12d637f80302"
|
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"
|