fix: build Android against the devbox SDK and current Flutter
This commit is contained in:
parent
722390ecec
commit
414f8e8484
5 changed files with 26 additions and 16 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue