-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
44 lines (38 loc) · 1.3 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
44 lines (38 loc) · 1.3 KB
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
import org.gradle.internal.impldep.org.apache.ivy.util.url.IvyAuthenticator.install
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.dagger.hilt.android) apply false
alias(libs.plugins.cn.therouter) apply false
}
tasks.register<tasks.ModuleGeneratorTask>("gm") {
modName.set(project.findProperty("modName")?.toString() ?: "defalt")
packName.set(project.findProperty("packName")?.toString() ?: "")
hasViewModel.set(project.findProperty("hasViewModel")?.toString()?.toBoolean() ?: true)
}
subprojects {
apply(plugin = "kotlin-kapt")
afterEvaluate {
val configure = {
dependencies {
add("implementation", libs.multidex)
}
}
plugins.withId("com.android.application") {
configure()
}
plugins.withId("com.android.library") {
configure()
}
}
}
project.ext.apply {
set("compileSdk", 34)
set("minSdk", 23)
set("targetSdk", 34)
set("versionCode", 1)
set("versionName", "1.0.0")
}