-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathandroid-base.gradle
90 lines (77 loc) · 2.73 KB
/
android-base.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
88
89
90
apply plugin: libs.plugins.androidLibrary.get().pluginId
apply plugin: libs.plugins.kotlinAndroid.get().pluginId
apply plugin: libs.plugins.kotlinParcelize.get().pluginId
android {
compileSdk Android.compileSdk
defaultConfig {
minSdk Android.minSdk
targetSdk Android.targetSdk
versionCode Android.versionCode
versionName Android.versionName
vectorDrawables.useSupportLibrary true
consumerProguardFiles "consumer-proguard-rules.pro"
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17
freeCompilerArgs = ["-Xstring-concat=inline"]
}
kotlin {
sourceSets {
main.kotlin.srcDirs += 'build/generated/ksp/main/kotlin'
test.kotlin.srcDirs += 'build/generated/ksp/test/kotlin'
}
}
lint {
checkDependencies true
}
sourceSets {
getByName("test").resources.srcDir("src/test/res")
}
testOptions {
// Fix for mock issue on >= API 28
packaging.jniLibs.useLegacyPackaging = true
unitTests {
// To prevent textUtils error with espresso idling resource
returnDefaultValues = true
includeAndroidResources = true
all {
afterSuite { desc, result ->
if (!desc.parent) {
println "\n======================================================================="
println "${desc.displayName}"
println "Test result: ${result.resultType}"
println "Test summary: ${result.testCount} tests, " +
"${result.successfulTestCount} succeeded, " +
"${result.failedTestCount} failed, " +
"${result.skippedTestCount} skipped"
println "======================================================================="
}
}
testLogging {
exceptionFormat "full"
showCauses true
showExceptions true
showStackTraces true
showStandardStreams true
events = ["passed", "skipped", "failed", "standardOut", "standardError"]
}
}
}
}
}
dependencies {
implementation(libs.timber)
}