-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle.kts
27 lines (22 loc) · 915 Bytes
/
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
import org.gradle.kotlin.dsl.support.uppercaseFirstChar
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.jetbrainsKotlinAndroid) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.composeCompiler) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.jetbrainsKotlinJvm) apply false
alias(libs.plugins.kotlinParcelize) apply false
}
ext["allArch"] = arrayOf("arm64-v8a", "armeabi-v7a", "x86", "x86_64", "universal")
val allArch: Array<String> by ext
tasks.register("buildRelease") {
val allBuildType = allArch + "release"
allBuildType.forEach { buildType ->
dependsOn(":app:assemble${buildType.uppercaseFirstChar()}")
}
}
tasks.register("buildDebug") {
dependsOn(":app:assembleDebug")
}