fix: build Android against the devbox SDK and current Flutter

This commit is contained in:
randogoth 2026-10-13 11:47:01 +03:00
parent 722390ecec
commit 414f8e8484
5 changed files with 26 additions and 16 deletions

View file

@ -13,6 +13,15 @@ subprojects {
project.evaluationDependsOn(":app")
}
// Plugin build scripts ask for Flutter's default NDK, which the read-only
// devbox-managed SDK does not carry, so every project gets the app's pin.
gradle.afterProject { project ->
def android = project.extensions.findByName("android")
if (android != null && android.hasProperty("ndkVersion")) {
android.ndkVersion = "27.0.12077973"
}
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}