-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.gradle
87 lines (74 loc) · 2.17 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
77
78
79
80
81
82
83
84
85
86
87
apply plugin: Plugins.KOTLIN_ANDROID
apply plugin: Plugins.KOTLIN_ANDROID_EXTENSIONS
apply plugin: Plugins.KOTLIN_KAPT
apply plugin: Plugins.DAGGER_HILT
android {
compileSdkVersion Config.COMPILE_SDK_VERSION
defaultConfig {
minSdkVersion Config.MIN_SDK_VERSION
targetSdkVersion Config.TARGET_SDK_VERSION
versionCode Config.VERSION_CODE
versionName Config.VERSION_NAME
}
flavorDimensions Dimensions.DEFAULT
productFlavors {
prod {
versionCode Prod.VERSION_CODE
versionName Prod.VERSION_NAME
}
dev {
versionCode Dev.VERSION_CODE
versionName Dev.VERSION_NAME
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
}
}
testOptions {
unitTests.returnDefaultValues = true
}
lintOptions {
lintOptions {
abortOnError false
warningsAsErrors true
ignoreTestSources true
lintConfig file("lint.xml")
disable 'GradleDeprecated'
disable 'OldTargetApi'
disable 'GradleDependency'
}
}
buildFeatures {
viewBinding true
}
packagingOptions {
exclude 'META-INF/*'
}
}
dependencies {
api Libraries.DAGGER_HILT
kapt Libraries.DAGGER_HILT_COMPILER
compileOnly Libraries.JAVAX_ANNOTATION
testImplementation TestLibraries.J_UNIT
androidTestImplementation TestLibraries.ANDROID_TEST_IMPLEMENTATION
androidTestImplementation TestLibraries.ESPRESSO_CORE
api TestLibraries.COROUTINES_TEST
testImplementation TestLibraries.MOCKK
testImplementation TestLibraries.TRUTH
testImplementation TestLibraries.ARCH_CORE
androidTestImplementation TestLibraries.TRUTH
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'org.jetbrains.kotlin') {
details.useVersion Versions.KOTLIN_VERSION
}
}
}