-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
135 lines (114 loc) · 4.06 KB
/
build.gradle.kts
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
plugins {
id("com.android.application")
id("kotlin-parcelize")
kotlin("android")
kotlin("kapt")
id("com.google.gms.google-services")
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin")
id("androidx.navigation.safeargs.kotlin")
}
android {
compileSdk = DefaultConfiguration.compileSdk
defaultConfig {
applicationId = "com.openclassrooms.realestatemanager"
minSdk = DefaultConfiguration.minSdk
targetSdk = DefaultConfiguration.targetSdk
versionCode = DefaultConfiguration.versionCode
versionName = DefaultConfiguration.versionName
testInstrumentationRunner = DefaultConfiguration.androidTestInstrumentation
multiDexEnabled = true
vectorDrawables.useSupportLibrary = true
// The following argument makes the Android Test Orchestrator run its
// "pm clear" command after each test invocation. This command ensures
// that the app's state is completely cleared between tests.
testInstrumentationRunnerArguments["clearPackageData"] = "true"
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android.txt"),
"proguard-rules.pro"
)
}
}
viewBinding {
android.buildFeatures.viewBinding = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
lint {
disable("RestrictedApi")
}
testOptions {
execution = "ANDROIDX_TEST_ORCHESTRATOR"
unitTests.isIncludeAndroidResources = true
}
sourceSets {
sourceSets.getByName("debug") {
res {
srcDirs("src/debug/res")
}
assets {
srcDirs("src/debug/assets")
}
resources {
srcDirs("src/debug/resources")
}
}
sourceSets.getByName("release") {
kotlin.srcDir("src/release/kotlin")
}
sourceSets.getByName("test") {
kotlin.srcDirs("src/test/kotlin", "src/sharedTest/kotlin")
}
sourceSets.getByName("androidTest") {
kotlin.srcDirs("src/androidTest/kotlin", "src/sharedTest/kotlin")
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
kotlinOptions {
jvmTarget = "1.8"
}
}
// Instead, use the bundle block to control which types of configuration APKs
// you want your app bundle to support.
bundle {
language {
// This property is set to true by default.
// You can specify `false` to turn off
// generating configuration APKs for language resources.
// These resources are instead packaged with each base and
// feature APK.
// Continue reading below to learn about situations when an app
// might change setting to `false`, otherwise consider leaving
// the default on for more optimized downloads.
enableSplit = true
}
density {
// This property is set to true by default.
enableSplit = true
}
abi {
// This property is set to true by default.
enableSplit = true
}
}
}
dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
kapt(Dependencies.kaptLibraries)
implementation(platform(Dependencies.firebaseBom))
implementation(Dependencies.appLibraries)
kaptAndroidTest(Dependencies.kaptAndroidTestLibraries)
testImplementation(Dependencies.testLibraries)
androidTestImplementation(Dependencies.androidTestLibraries)
androidTestUtil(Dependencies.testOrchestrator)
androidTestImplementation (Dependencies.espressoContrib) {
exclude(module = "protobuf-lite")
exclude(group = "org.checkerframework", module = "checker")
}
debugImplementation(Dependencies.debugLibraries)
}