2017-07-29 06:10:37 +02:00
|
|
|
buildscript {
|
2020-03-09 14:30:14 +01:00
|
|
|
ext {
|
2021-03-11 05:34:22 +01:00
|
|
|
activityVersion = '1.2.1'
|
2021-02-11 16:11:51 +01:00
|
|
|
agpVersion = '4.1.2'
|
2020-03-09 14:30:14 +01:00
|
|
|
annotationsVersion = '1.1.0'
|
2020-08-22 21:13:25 +02:00
|
|
|
appcompatVersion = '1.2.0'
|
2020-11-30 18:08:17 +01:00
|
|
|
biometricVersion = '1.1.0-rc01'
|
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'
|
2020-12-16 18:44:36 +01:00
|
|
|
coreKtxVersion = '1.3.2'
|
2020-11-30 18:08:17 +01:00
|
|
|
coroutinesVersion = '1.4.2'
|
2020-12-10 22:32:50 +01:00
|
|
|
datastoreVersion = '1.0.0-alpha02'
|
2020-09-15 23:30:20 +02:00
|
|
|
desugarVersion = '1.0.10'
|
2021-03-11 05:34:22 +01:00
|
|
|
fragmentVersion = '1.3.1'
|
2020-03-09 14:30:14 +01:00
|
|
|
jsr305Version = '3.0.2'
|
2020-11-09 12:31:54 +01:00
|
|
|
junitVersion = '4.13.1'
|
2021-03-01 11:24:54 +01:00
|
|
|
kotlinVersion = '1.4.31'
|
2021-02-11 18:03:04 +01:00
|
|
|
lifecycleRuntimeKtxVersion = '2.3.0'
|
2021-02-11 18:04:07 +01:00
|
|
|
materialComponentsVersion = '1.3.0'
|
2020-04-18 22:38:41 +02:00
|
|
|
preferenceVersion = '1.1.1'
|
2021-02-19 14:59:57 +01:00
|
|
|
zxingEmbeddedVersion = '4.1.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
|
|
|
dependencies {
|
2020-03-09 14:30:14 +01:00
|
|
|
classpath "com.android.tools.build:gradle:$agpVersion"
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
2017-07-29 06:10:37 +02:00
|
|
|
}
|
|
|
|
repositories {
|
2017-11-08 05:52:50 +01:00
|
|
|
google()
|
2021-02-05 17:55:38 +01:00
|
|
|
mavenCentral()
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-13 14:21:30 +02:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
2021-02-05 17:55:38 +01:00
|
|
|
mavenCentral()
|
2021-03-16 09:58:11 +01:00
|
|
|
}
|
|
|
|
configurations.all {
|
|
|
|
// New versions use different maven coordinates and are available on Maven Central
|
|
|
|
resolutionStrategy.dependencySubstitution {
|
|
|
|
substitute(module("org.jetbrains.trove4j:trove4j:20160824"))
|
|
|
|
.using(module("org.jetbrains.intellij.deps:trove4j:1.0.20181211"))
|
2021-02-05 17:55:38 +01:00
|
|
|
}
|
2020-09-13 14:21:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-02-23 12:38:01 +01:00
|
|
|
gradleVersion = "6.8.3"
|
2019-09-27 09:29:40 +02:00
|
|
|
distributionType = Wrapper.DistributionType.ALL
|
2021-02-23 12:38:01 +01:00
|
|
|
distributionSha256Sum = "9af5c8e7e2cd1a3b0f694a4ac262b9f38c75262e74a9e8b5101af302a6beadd7"
|
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"
|