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

@ -8,16 +8,17 @@ plugins {
android {
namespace = "vision.flux.muzzlevelocity"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileSdkVersion 34
// The devbox-managed SDK ships this NDK and is read-only, so Gradle
// cannot install the Flutter default beside it.
ndkVersion = "27.0.12077973"
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
jvmTarget = JavaVersion.VERSION_17
}
defaultConfig {