33 lines
868 B
Kotlin
33 lines
868 B
Kotlin
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
// NDK 28 (flutter.ndkVersion default) is not installed; override all library
|
|
// modules to use the installed NDK 27.
|
|
subprojects {
|
|
afterEvaluate {
|
|
if (plugins.hasPlugin("com.android.library")) {
|
|
configure<com.android.build.gradle.LibraryExtension> {
|
|
ndkVersion = "27.0.12077973"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
|
|
rootProject.layout.buildDirectory.value(newBuildDir)
|
|
|
|
subprojects {
|
|
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
|
|
project.layout.buildDirectory.value(newSubprojectBuildDir)
|
|
}
|
|
subprojects {
|
|
project.evaluationDependsOn(":app")
|
|
}
|
|
|
|
tasks.register<Delete>("clean") {
|
|
delete(rootProject.layout.buildDirectory)
|
|
}
|