-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (51 loc) · 1.7 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
version_agp = '7.1.1'
version_kotlin = '1.6.10'
version_appcompat = '1.4.1'
version_material = "1.5.0"
version_navigation = '2.4.1'
version_core_ktx = '1.7.0'
version_constraint_layout = '2.1.3'
version_camerax = "1.1.0-beta01"
version_timber = '5.0.1'
version_coroutines = '1.6.0-native-mt'
version_concurrent_futures_ktx = '1.1.0'
version_lifecycle_extensions = "2.2.0"
version_viewmodel_ktx = '2.5.0-alpha02'
version_room = '2.4.1'
version_retrofit = "2.9.0"
version_glide = '4.13.0'
version_logging_interceptor = '5.0.0-alpha.4'
version_shimmer_layout = '0.5.0'
version_espresso_core = '3.4.0'
version_android_junit = '1.1.3'
version_junit = '4.13.2'
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$version_agp"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$version_kotlin"
}
}
plugins {
id 'com.android.application' version "$version_agp" apply false
id 'com.android.library' version "$version_agp" apply false
id 'org.jetbrains.kotlin.android' version "$version_kotlin" apply false
}
allprojects {
//Support @JvmDefault
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs = ['-Xjvm-default=enable'] //enable or compatibility
jvmTarget = "1.8"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}