2021-05-28 11:26:19 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
|
|
|
|
|
2013-05-25 21:14:46 +00:00
|
|
|
buildscript {
|
2018-05-23 13:57:04 +00:00
|
|
|
ext {
|
2018-05-23 17:36:52 +00:00
|
|
|
buildConfig = [
|
2021-10-30 01:17:50 +00:00
|
|
|
'compileSdk': 31,
|
2021-08-10 14:58:01 +00:00
|
|
|
'targetSdk': 30,
|
2019-11-19 14:00:08 +00:00
|
|
|
'minSdk': 21,
|
2021-08-10 14:58:01 +00:00
|
|
|
'buildTools': '30.0.3',
|
|
|
|
'robolectricSdk': 30
|
2018-05-23 17:36:52 +00:00
|
|
|
]
|
2018-05-23 13:57:04 +00:00
|
|
|
|
2018-05-23 17:36:52 +00:00
|
|
|
versions = [
|
2021-10-30 00:33:09 +00:00
|
|
|
'kotlin': '1.5.31',
|
2021-10-30 00:37:04 +00:00
|
|
|
'kotlinCoroutines': '1.5.2',
|
2021-10-30 01:17:50 +00:00
|
|
|
'androidxAppCompat': '1.3.1',
|
|
|
|
'androidxActivity': '1.4.0',
|
2021-10-30 01:33:49 +00:00
|
|
|
'androidxRecyclerView': '1.2.1',
|
2021-10-30 01:17:50 +00:00
|
|
|
'androidxLifecycle': '2.4.0',
|
2021-04-21 23:09:55 +00:00
|
|
|
'androidxAnnotation': '1.2.0',
|
2021-08-17 16:24:58 +00:00
|
|
|
'androidxBiometric': '1.1.0',
|
2021-04-21 23:16:55 +00:00
|
|
|
'androidxNavigation': '2.3.5',
|
2021-10-30 01:36:07 +00:00
|
|
|
'androidxConstraintLayout': '2.1.1',
|
2021-10-30 01:37:41 +00:00
|
|
|
'androidxWorkManager': '2.7.0',
|
2021-10-30 01:17:50 +00:00
|
|
|
'androidxFragment': '1.3.6',
|
2019-11-19 17:32:29 +00:00
|
|
|
'androidxLocalBroadcastManager': '1.0.0',
|
2021-10-30 01:17:50 +00:00
|
|
|
'androidxCore': '1.7.0',
|
2020-04-04 23:01:21 +00:00
|
|
|
'androidxCardView': '1.0.0',
|
2020-04-15 19:32:44 +00:00
|
|
|
'androidxPreference': '1.1.1',
|
2020-09-17 23:21:34 +00:00
|
|
|
'androidxTestCore': '1.3.0',
|
2021-04-21 23:22:22 +00:00
|
|
|
'materialComponents': '1.3.0',
|
2021-04-21 23:23:14 +00:00
|
|
|
'fastAdapter': '5.4.1',
|
2019-11-28 16:26:29 +00:00
|
|
|
'preferencesFix': '1.1.0',
|
2021-04-21 23:25:02 +00:00
|
|
|
'okio': '2.10.0',
|
2021-04-21 23:25:53 +00:00
|
|
|
'moshi': '1.12.0',
|
2020-04-15 19:15:44 +00:00
|
|
|
'timber': '4.7.1',
|
2021-04-21 23:32:24 +00:00
|
|
|
'koin': '2.2.2',
|
2020-01-19 01:40:20 +00:00
|
|
|
'commonsIo': '2.6',
|
2020-07-15 14:35:03 +00:00
|
|
|
'mime4j': '0.8.3',
|
2021-04-21 23:46:02 +00:00
|
|
|
'okhttp': '4.9.1',
|
2020-09-18 00:40:47 +00:00
|
|
|
'minidns': '1.0.0',
|
2021-04-21 23:47:55 +00:00
|
|
|
'glide': '4.12.0',
|
2019-01-16 12:52:46 +00:00
|
|
|
|
2020-09-17 23:21:34 +00:00
|
|
|
'androidxTestRunner': '1.3.0',
|
2021-04-21 23:49:06 +00:00
|
|
|
'junit': '4.13.2',
|
2021-04-21 23:51:45 +00:00
|
|
|
'robolectric': '4.5.1',
|
2021-04-21 23:54:34 +00:00
|
|
|
'mockito': '3.9.0',
|
2021-04-21 23:57:38 +00:00
|
|
|
'mockitoKotlin': '3.1.0',
|
2021-04-22 00:05:28 +00:00
|
|
|
'truth': '1.1.2',
|
2020-10-16 12:14:12 +00:00
|
|
|
|
2021-04-22 00:06:41 +00:00
|
|
|
'ktlint': '0.40.0'
|
2018-05-23 17:36:52 +00:00
|
|
|
]
|
2019-11-13 15:10:14 +00:00
|
|
|
|
2019-11-13 15:35:38 +00:00
|
|
|
javaVersion = JavaVersion.VERSION_1_8
|
2019-11-17 13:40:57 +00:00
|
|
|
kotlinJvmVersion = "1.8"
|
2018-05-23 13:57:04 +00:00
|
|
|
}
|
|
|
|
|
2014-09-18 13:18:41 +00:00
|
|
|
repositories {
|
2018-10-24 01:29:21 +00:00
|
|
|
mavenCentral()
|
2018-02-17 03:05:09 +00:00
|
|
|
google()
|
2019-11-26 20:37:40 +00:00
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
2018-10-24 01:29:21 +00:00
|
|
|
jcenter()
|
2014-09-18 13:18:41 +00:00
|
|
|
}
|
2013-05-25 21:14:46 +00:00
|
|
|
|
2014-09-18 13:18:41 +00:00
|
|
|
dependencies {
|
2021-04-22 00:23:45 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:4.1.3'
|
2018-05-23 17:36:52 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
|
2021-04-22 00:06:41 +00:00
|
|
|
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.0.0"
|
2014-09-18 13:18:41 +00:00
|
|
|
}
|
2013-05-25 21:14:46 +00:00
|
|
|
}
|
|
|
|
|
2015-12-21 01:11:37 +00:00
|
|
|
project.ext {
|
|
|
|
testCoverage = project.hasProperty('testCoverage')
|
|
|
|
}
|
2014-08-30 23:10:13 +00:00
|
|
|
|
|
|
|
subprojects {
|
2018-02-17 03:33:30 +00:00
|
|
|
repositories {
|
2018-10-24 01:29:21 +00:00
|
|
|
mavenCentral()
|
2018-02-17 03:33:30 +00:00
|
|
|
google()
|
2018-10-24 01:29:21 +00:00
|
|
|
jcenter()
|
2019-10-05 15:19:30 +00:00
|
|
|
maven { url 'https://jitpack.io' }
|
2018-02-17 03:33:30 +00:00
|
|
|
}
|
2020-09-19 19:55:25 +00:00
|
|
|
|
|
|
|
tasks.withType(Test) {
|
|
|
|
testLogging {
|
|
|
|
exceptionFormat "full"
|
|
|
|
showCauses true
|
|
|
|
showExceptions true
|
|
|
|
showStackTraces true
|
|
|
|
}
|
|
|
|
}
|
2020-10-16 12:14:12 +00:00
|
|
|
|
2021-05-28 11:26:19 +00:00
|
|
|
tasks.withType(KotlinCompile) {
|
|
|
|
kotlinOptions {
|
|
|
|
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-16 12:14:12 +00:00
|
|
|
apply plugin: 'org.jlleitschuh.gradle.ktlint'
|
|
|
|
ktlint {
|
|
|
|
version = versions.ktlint
|
|
|
|
}
|
2014-08-30 23:10:13 +00:00
|
|
|
}
|