/
build.gradle
75 lines (66 loc) · 2.11 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.buildConfig = [
'compileSdk': 31,
'minSdk' : 21,
'targetSdk' : 31,
]
ext.versions = [
'kotlin' : '1.6.10',
'core' : '1.7.0',
'appcompat' : '1.4.1',
'material' : '1.5.0',
'lifecycle' : '2.4.1',
'activity' : '1.4.0',
'coroutines' : '1.6.0',
'compose' : '1.1.1',
'navigation' : '2.4.1',
'accompanist' : '0.23.1',
'hilt' : '2.38.1',
'hilt_androidx' : '1.0.0',
'moshi' : '1.13.0',
'retrofit' : '2.9.0',
'okhttp' : '4.9.3',
'timber' : '5.0.1',
'coil' : '1.4.0',
'junit' : '4.13.2',
'mockk' : '1.12.3',
'truth' : '1.1.3',
'junitandroid' : '1.1.3',
'espresso' : '3.4.0',
'turbine' : '0.7.0',
]
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.1.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "com.google.dagger:hilt-android-gradle-plugin:${versions.hilt}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "org.jlleitschuh.gradle.ktlint" version "10.2.1"
}
subprojects {
apply plugin: "org.jlleitschuh.gradle.ktlint" // Version should be inherited from parent
repositories {
// Required to download KtLint
mavenCentral()
}
// Optionally configure plugin
ktlint {
android = true
debug = true
reporters {
reporter "checkstyle"
}
ignoreFailures = true
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}