-
Notifications
You must be signed in to change notification settings - Fork 9
/
common.gradle
64 lines (55 loc) · 1.7 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
apply plugin: Plugins.kotlinAndroid
apply plugin: Plugins.kotlinAndroidExtensions
apply plugin: Plugins.kotlinKapt
android {
compileSdkVersion Config.compileSdkVersion
defaultConfig {
minSdkVersion Config.minSdkVersion
targetSdkVersion Config.targetSdkVersion
versionCode Config.versionCode
versionName Config.versionName
vectorDrawables.useSupportLibrary = true
}
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
}
}
}
dependencies {
implementation CoreLibraries.kotlin
kapt Libraries.dagger2Compiler
kapt Libraries.dagger2AndroidProcessor
testAnnotationProcessor Libraries.dagger2Compiler
compileOnly Libraries.javaxAnnotation
kapt Libraries.roomCompiler
// Testing
testImplementation TestLibraries.jUnit
androidTestImplementation TestLibraries.runnner
androidTestImplementation TestLibraries.espressoCore
testImplementation TestLibraries.mockitoCore
androidTestImplementation TestLibraries.mockitoAndroid
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'org.jetbrains.kotlin') {
details.useVersion Versions.kotlinVersion
}
}
}