-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
54 lines (43 loc) · 1.5 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
plugins {
alias(libs.plugins.hilt) apply false
alias(libs.plugins.compose.compiler) apply false
}
buildscript {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
dependencies {
classpath(libs.gradle)
classpath(libs.kotlin.gradle.plugin)
classpath(libs.androidx.navigation.safe.args.gradle.plugin)
classpath(libs.google.services)
classpath(libs.firebase.crashlytics.gradle)
// https://github.com/cashapp/sqldelight
classpath(libs.gradle.plugin)
classpath(libs.kotlin.allopen)
classpath(libs.secrets.gradle.plugin)
// https://github.com/icerockdev/moko-resources
classpath(libs.resources.generator)
classpath(libs.baseline.profile)
classpath(libs.hilt.gradlePlugin)
}
}
subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions {
freeCompilerArgs.addAll(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=${project.layout.buildDirectory.get().asFile.absolutePath}/compose_metrics"
)
freeCompilerArgs.addAll(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=${project.layout.buildDirectory.get().asFile.absolutePath}/compose_metrics"
)
}
}
}
tasks.register(name = "clean", type = Delete::class) {
delete(rootProject.layout.buildDirectory)
}