-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
61 lines (55 loc) · 2.13 KB
/
build.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
buildscript {
ext {
compose_version = '1.7.5'
hilt_version= '2.52'
kotlin_version = '2.0.0'
kotlin_compiler = '1.5.11'
}
repositories {
gradlePluginPortal()
google()
mavenCentral()
// maven { url "https://maven.aliyun.com/nexus/content/repositories/google"}
// maven { url "https://maven.aliyun.com/nexus/content/groups/public/"}
// maven { url "https://maven.aliyun.com/nexus/content/repositories/jcenter"}
maven {
url "https://jitpack.io"
}
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
classpath("com.google.dagger:hilt-android-gradle-plugin:$hilt_version")
classpath 'com.android.tools.build:gradle:8.4.2'
classpath ("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}")
// classpath ("org.jetbrains.kotlin.plugin.compose:${kotlin_version}")
classpath("org.jetbrains.kotlin:compose-compiler-gradle-plugin:2.0.0")
}
}
plugins {
// id 'com.android.application' version '8.2.0-alpha07' apply false
// id 'com.android.library' version '8.2.0-alpha07' apply false
id 'org.jetbrains.kotlin.android' version "${kotlin_version}" apply false
// id 'com.google.devtools.ksp' version '1.8.21-1.0.11' apply false
}
//
tasks.register("clean"){
delete rootProject.buildDir
}
subprojects {
// tasks.withType(KotlinCompile).configureEach {
// kotlinOptions {
// if (project.findProperty("myapp.enableComposeCompilerReports") == "true") {
// freeCompilerArgs += [
// "-P",
// "plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
// project.buildDir.absolutePath + "/compose_metrics"
// ]
// freeCompilerArgs += [
// "-P",
// "plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
// project.buildDir.absolutePath + "/compose_metrics"
// ]
// }
// }
// }
}