-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
81 lines (67 loc) · 2.23 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
//version
versionCode = 1
versionName = "0.1"
//compile
compilesdkversion = 28
minsdkversion = 19
//default configuration
defConfig = {
minSdkVersion this.minsdkversion
targetSdkVersion this.compilesdkversion
versionCode this.versionCode
versionName this.versionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signconfig = {
keyAlias System.getenv("JANUS_KEYSTORE_ALIAS") ?: JANUS_KEYSTORE_ALIAS
keyPassword System.getenv("JANUS_KEYSTORE_ALIAS_PASSWORD") ?: JANUS_KEYSTORE_ALIAS_PASSWORD
storeFile file(System.getenv("JANUS_KEYSTORE_FILEPATH") ?: JANUS_KEYSTORE_FILEPATH)
storePassword System.getenv("JANUS_KEYSTORE_PASSWORD") ?: JANUS_KEYSTORE_PASSWORD
}
kotlin_version = '1.3.0'
// android
supportLibraryVersion = "27.1.1"
constraintLayoutVersion = "1.1.2"
playServicesVersion = "15.0.1"
// arch dagger rx
archVersion = "1.1.1"
daggerVersion = '2.15'
rxJavaVersion = "2.1.8"
rxAndroidVersion = "2.0.2"
// network
gsonVersion = '2.7'
retrofitVersion = '2.3.0'
okHttpVersion = "3.9.1"
glideVersion = "4.7.1"
stetho = "1.5.0"
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven { url 'https://jitpack.io' }
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// for databinding errors combined with long dagger error trace
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "500" // or whatever number you want
}
}