forked from quran/quran_android
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
74 lines (67 loc) · 1.84 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
buildscript {
ext {
kotlinVersion = '1.3.21'
daggerVersion = '2.21'
androidxVersion = '1.0.0'
androidxMediaVersion = '1.0.1'
androidxPreferencesVersion = '1.1.0-alpha04'
androidxAppcompatVersion = '1.1.0-alpha04'
espressoVersion = '3.1.0-beta02'
okhttpVersion = '3.12.1'
deps = [
android: [
build: [
minSdkVersion : 14,
targetSdkVersion : 28,
compileSdkVersion: 28
]
],
kotlin: [
stdlib: "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}"
],
dagger: [
apt: "com.google.dagger:dagger-compiler:${daggerVersion}",
runtime: "com.google.dagger:dagger:${daggerVersion}"
]
]
}
// workaround for proguard failing to parse moshi's proguard rules
buildscript {
configurations.all {
resolutionStrategy {
force 'net.sf.proguard:proguard-gradle:6.1.0beta2'
}
}
}
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0-rc03'
classpath "io.fabric.tools:gradle:1.27.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "net.ltgt.gradle:gradle-errorprone-plugin:0.0.13"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
tasks.withType(JavaCompile).all {
options.compilerArgs += [
'-Adagger.formatGeneratedSource=disabled',
'-Adagger.gradle.incremental=enabled'
]
}
afterEvaluate {
extensions.findByName('kapt')?.arguments {
arg("dagger.formatGeneratedSource", "disabled")
arg("dagger.gradle.incremental", "enabled")
}
}
}