-
Notifications
You must be signed in to change notification settings - Fork 6
/
common.gradle
76 lines (65 loc) · 1.96 KB
/
common.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
apply plugin: Plugins.kotlinAndroid
apply plugin: Plugins.kotlinAndroidExtensions
apply plugin: Plugins.kotlinKapt
apply plugin: Plugins.fabric
android {
compileSdkVersion Config.compileSdkVersion
defaultConfig {
minSdkVersion Config.minSdkVersion
targetSdkVersion Config.targetSdkVersion
versionCode Config.versionCode
versionName Config.versionName
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
flavorDimensions Dimensions.default
productFlavors {
prod {
versionCode Prod.versionCode
versionName Prod.versionName
}
dev {
versionCode Dev.versionCode
versionName Dev.versionName
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation CoreLibraries.kotlin
kapt Libraries.dagger2Compiler
kapt Libraries.dagger2AndroidProcessor
kapt Libraries.roomCompiler
testAnnotationProcessor Libraries.dagger2Compiler
compileOnly Libraries.javaxAnnotation
implementation 'androidx.multidex:multidex:2.0.0'
implementation(Libraries.fabric) {
transitive = true
}
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'org.jetbrain.kotlin') {
details.userVersion Version.kotlinVersion
} else if (requested.group == 'com.android.support') {
details.userVersion Versions.appCompatVersion
}
}
}