-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
98 lines (82 loc) · 2.29 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
plugin_version = "3.3.1"
kotlin_version = "1.4.10"
hilt_version = "2.28-alpha"
apollo_version = "2.2.2"
}
repositories {
jcenter()
google()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.android.tools.build:gradle:4.1.1'
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
classpath "com.apollographql.apollo:apollo-gradle-plugin:$apollo_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
google()
maven { url 'https://jitpack.io' }
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile.class) {
options.compilerArgs << "-Xmaxerrs" << "10000"
}
}
afterEvaluate {
if (project.plugins.hasPlugin("kotlin-kapt")) {
kapt {
javacOptions {
option("-Xmaxerrs", 10000)
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Define versions in a single place
ext {
// Sdk and tools
minSdkVersion = 16
targetSdkVersion = 28
compileSdkVersion = 28
buildToolsVersion = '28.0.3'
constraintLayoutVersion = '2.0.4'
recyclerViewVersion = '1.1.0'
cardViewVersion = '1.0.0'
ktxVersion = "1.2.5"
// App dependencies
supportLibraryVersion = '1.2.0'
materialVersion = '1.2.1'
vectorDrawableVersion = '1.1.0'
gsonVersion = '2.8.5'
glideVersion = '4.8.0'
navCompVersion = "1.0.0"
apolloVersion = "2.2.2"
okhttp3Version = "4.9.0"
room_version = "2.2.6"
hiltJetpack = '1.0.0-alpha02'
rxjava3Version = '3.0.4'
rxandroid3Version = '3.0.0'
placeholderviewVersion = '0.6.1'
debugDBVersion = '1.0.3'
timberVersion = '4.7.0'
lifecycleVersion = '2.2.0'
workManagerVersion = '2.4.0'
// Test dependencies
junitVersion = '4.12'
espressoVersion = '3.3.0'
mockitoVersion = '2.15.0'
//fonts
viewPumpVersion = '2.0.3'
}