2013-08-07 11:35:51 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2019-01-27 10:55:08 +01:00
|
|
|
google()
|
2016-05-10 20:17:56 +02:00
|
|
|
mavenCentral()
|
2021-07-22 22:48:48 +02:00
|
|
|
gradlePluginPortal()
|
2013-08-07 11:35:51 +02:00
|
|
|
}
|
|
|
|
dependencies {
|
2021-09-18 22:58:04 +02:00
|
|
|
classpath 'com.android.tools.build:gradle:4.2.2'
|
2021-03-27 16:17:14 +01:00
|
|
|
classpath "gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.0"
|
2021-12-28 19:55:21 +01:00
|
|
|
classpath 'org.codehaus.groovy:groovy-xml:3.0.9'
|
2014-06-15 20:21:31 +02:00
|
|
|
}
|
2013-08-07 11:35:51 +02:00
|
|
|
}
|
|
|
|
|
2014-09-17 20:51:45 +02:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
2018-03-13 17:51:50 +01:00
|
|
|
google()
|
2021-02-04 10:36:26 +01:00
|
|
|
mavenCentral()
|
2019-01-27 12:45:32 +01:00
|
|
|
maven { url "https://jitpack.io" }
|
2014-07-06 12:37:43 +02:00
|
|
|
}
|
2014-10-14 18:41:13 +02:00
|
|
|
}
|
|
|
|
|
2015-11-01 17:48:33 +01:00
|
|
|
// Disable predex if requested (we can"t predex in Circle CI
|
2015-09-05 17:40:17 +02:00
|
|
|
// See http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance
|
|
|
|
// and https://circleci.com/docs/android
|
2015-11-01 17:48:33 +01:00
|
|
|
project.ext.preDexLibs = !project.hasProperty("disablePreDex")
|
2015-09-05 17:40:17 +02:00
|
|
|
|
|
|
|
subprojects {
|
|
|
|
project.plugins.whenPluginAdded { plugin ->
|
2018-01-14 17:55:51 +01:00
|
|
|
if ("com.android.build.gradle.AppPlugin" == plugin.class.name) {
|
2015-09-05 17:40:17 +02:00
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
2018-01-14 17:55:51 +01:00
|
|
|
} else if ("com.android.build.gradle.LibraryPlugin" == plugin.class.name) {
|
2015-09-05 17:40:17 +02:00
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-01 17:48:33 +01:00
|
|
|
project.ext {
|
2020-05-07 17:38:01 +02:00
|
|
|
// AndroidX
|
2021-08-29 02:33:44 +02:00
|
|
|
annotationVersion = "1.2.0"
|
|
|
|
appcompatVersion = "1.3.1"
|
|
|
|
coreVersion = "1.5.0"
|
2021-09-24 10:18:54 +02:00
|
|
|
fragmentVersion = "1.3.6"
|
2021-12-10 21:28:09 +01:00
|
|
|
mediaVersion = "1.4.3"
|
2021-12-04 19:01:22 +01:00
|
|
|
paletteVersion = "1.0.0"
|
2020-05-07 17:38:01 +02:00
|
|
|
preferenceVersion = "1.1.1"
|
2021-12-04 19:01:22 +01:00
|
|
|
recyclerViewVersion = "1.2.1"
|
|
|
|
viewPager2Version = "1.1.0-beta01"
|
2020-04-10 12:28:59 +02:00
|
|
|
workManagerVersion = "2.3.4"
|
2022-02-09 17:45:46 +01:00
|
|
|
googleMaterialVersion = "1.4.0"
|
2020-05-07 17:38:01 +02:00
|
|
|
|
|
|
|
// Third-party
|
2017-09-23 10:04:00 +02:00
|
|
|
commonslangVersion = "3.6"
|
2020-05-07 17:38:01 +02:00
|
|
|
commonsioVersion = "2.5"
|
2018-01-07 19:27:50 +01:00
|
|
|
jsoupVersion = "1.11.2"
|
2020-05-07 17:38:01 +02:00
|
|
|
glideVersion = "4.8.0"
|
2020-04-26 03:03:16 +02:00
|
|
|
okhttpVersion = "3.12.10"
|
|
|
|
okioVersion = "1.17.5"
|
2020-05-07 17:38:01 +02:00
|
|
|
eventbusVersion = "3.2.0"
|
2020-04-26 03:03:16 +02:00
|
|
|
rxAndroidVersion = "2.1.1"
|
2018-09-30 19:58:53 +02:00
|
|
|
rxJavaVersion = "2.2.2"
|
2020-05-07 17:38:01 +02:00
|
|
|
iconifyVersion = "2.2.2"
|
2021-12-10 21:28:09 +01:00
|
|
|
exoPlayerVersion = "2.14.2"
|
2020-07-01 15:57:52 +02:00
|
|
|
audioPlayerVersion = "v2.0.0"
|
2016-03-19 05:31:41 +01:00
|
|
|
|
2020-04-21 17:41:24 +02:00
|
|
|
// Only used for free builds. This version should be updated regularly.
|
2021-11-06 19:24:47 +01:00
|
|
|
conscryptVersion = "2.5.2"
|
2020-04-21 17:41:24 +02:00
|
|
|
|
2020-05-07 17:38:01 +02:00
|
|
|
// Google Play build
|
2020-04-26 03:03:16 +02:00
|
|
|
wearableSupportVersion = "2.6.0"
|
2021-03-01 16:21:39 +01:00
|
|
|
playServicesVersion = "8.4.0"
|
2020-05-07 17:38:01 +02:00
|
|
|
|
|
|
|
//Tests
|
|
|
|
awaitilityVersion = "3.1.6"
|
2021-12-04 19:01:22 +01:00
|
|
|
junitVersion = "4.13"
|
|
|
|
robolectricVersion = "4.5-alpha-1"
|
2020-05-07 17:38:01 +02:00
|
|
|
robotiumSoloVersion = "5.6.3"
|
|
|
|
espressoVersion = "3.2.0"
|
|
|
|
runnerVersion = "1.2.0"
|
|
|
|
rulesVersion = "1.2.0"
|
2015-11-01 17:48:33 +01:00
|
|
|
}
|
|
|
|
|
2019-09-24 11:12:35 +02:00
|
|
|
apply plugin: "checkstyle"
|
|
|
|
checkstyle {
|
|
|
|
toolVersion '8.24'
|
|
|
|
}
|
|
|
|
|
|
|
|
task checkstyle(type: Checkstyle) {
|
|
|
|
classpath = files()
|
|
|
|
source "${project.rootDir}"
|
|
|
|
exclude("**/gen/**")
|
2019-10-22 16:50:04 +02:00
|
|
|
exclude("**/generated/**")
|
2019-09-24 11:12:35 +02:00
|
|
|
}
|