-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (61 loc) · 2.37 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: "org.jlleitschuh.gradle.ktlint"
buildscript {
ext {
kotlin_version = '1.4.20'
livecycle_version = "2.2.0"
room_version = '2.3.0-alpha03'//moving from 2.2.5 because -> https://issuetracker.google.com/issues/150106190
android_sqlcipher = '4.4.2'
sqlite_ktx_version = '2.1.0'
hilt_version = '2.28-alpha'
hilt_viewmodel_version = '1.0.0-alpha02'
coroutines_version = '1.3.9'
timber_version = '4.7.1'
firebase_BoM = '26.1.1'
security_crypto_version = '1.1.0-alpha03'//using this version to support api 21
nav_component_version="2.3.2"
//test
jacoco_version = '0.8.5'
junit_version ="4.13.1"
mockk_version="1.10.0"
robolectric_version ="4.4"
espresso_version="3.3.0"
testcore_version ="1.3.0"
testRunner_version ="1.2.0"
//analysis
ktlint_version = '0.40.0'
ktlint_gradle_version = '9.4.1'
}
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
// Jacoco report task does not wait for Android connected tests since 6.4 and
// need tools.build:gradle:4.0.2 for 6.3 info: https://github.com/gradle/gradle/issues/14132
//noinspection GradleDependency
classpath 'com.android.tools.build:gradle:4.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
classpath 'gradle.plugin.chrisney:enigma:1.0.0.8'
classpath "org.jacoco:org.jacoco.core:$jacoco_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_component_version"
classpath("org.jlleitschuh.gradle:ktlint-gradle:$ktlint_gradle_version")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}