-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle.kts
62 lines (57 loc) · 2.15 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.kotlinAndroid) apply false
alias(libs.plugins.kotlinxSerialization) apply false
alias(libs.plugins.kotlinxParcelize) apply false
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.hilt) apply false
}
tasks.register("clean", Delete::class) {
delete(rootProject.layout.buildDirectory)
}
subprojects {
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers"
if (project.findProperty("hackernews.enableComposeCompilerReports") == "true") {
// force tasks to rerun so that metrics are generated
outputs.upToDateWhen { false }
freeCompilerArgs = freeCompilerArgs +
"-P=plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=${project.projectDir.absolutePath}/build/compose_metrics/" +
"-P=plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=${project.projectDir.absolutePath}/build/compose_metrics/"
}
}
}
}
//buildscript {
// ext {
// kotlin_version = "1.5.31"
// }
// repositories {
// google()
// mavenCentral()
// maven { url "https://plugins.gradle.org/m2/" }
// maven { url "https://dl.bintray.com/arrow-kt/arrow-kt/" }
// }
// dependencies {
// classpath "com.android.tools.build:gradle:7.0.3"
// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
// classpath "com.google.gms:google-services:4.3.10"
// classpath "com.google.firebase:perf-plugin:1.4.0"
// classpath "com.google.firebase:firebase-crashlytics-gradle:2.8.0"
// classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5"
// }
//}
//
//allprojects {
// repositories {
// google()
// mavenCentral()
// }
//}
//
//task clean(type: Delete) {
// delete rootProject.buildDir
//}