chore(android): update Gradle Kotlin NDK and native build dependencies

This commit is contained in:
zarzet committed 2026-10-11 14:33:52 +07:00
1 parent 08032f1877
commit d611590039
7 files changed
+26 -19

No files matched your search

+11 -5
View File
@@ -38,7 +38,7 @@ require(rustAndroidAbis.all { it in supportedRustAndroidAbis }) {
android {
namespace = "com.zarz.spotiflac"
compileSdk = 37
ndkVersion = flutter.ndkVersion
ndkVersion = "30.0.16248370"
buildFeatures {
buildConfig = true
@@ -50,7 +50,7 @@ android {
externalNativeBuild {
cmake {
path = file("src/main/cpp/CMakeLists.txt")
version = "3.22.1"
version = "4.1.2"
}
}
@@ -98,7 +98,13 @@ android {
versionName = flutter.versionName
multiDexEnabled = true
externalNativeBuild {
cmake { arguments += "-DANDROID_STL=c++_static" }
cmake {
arguments += listOf(
"-DANDROID_STL=c++_static",
// Oboe's minimum predates the policies removed in CMake 4.
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
)
}
}
ndk {
@@ -160,7 +166,7 @@ val buildRustBackend = tasks.register<Exec>("buildRustBackend") {
environment(
"ANDROID_NDK_HOME",
System.getenv("ANDROID_NDK_HOME")
?: android.sdkDirectory.resolve("ndk/29.0.14206865").absolutePath,
?: android.sdkDirectory.resolve("ndk/30.0.16248370").absolutePath,
)
inputs.files(fileTree(rustBackendDir) {
include("**/*.rs", "**/*.toml", "**/*.lock", "**/*.js", "**/*.tsv", "**/*.pem")
@@ -202,7 +208,7 @@ dependencies {
implementation("androidx.activity:activity-ktx:1.13.0")
// NativeDownloadFinalizer imports FFmpegKit APIs directly. The Flutter
// plugin owns the runtime AAR; compileOnly avoids packaging it twice here.
compileOnly("com.antonkarpenko:ffmpeg-kit-audio:2.2.2")
compileOnly("com.antonkarpenko:ffmpeg-kit-audio:2.2.3")
testImplementation("junit:junit:4.13.2")
testImplementation("org.json:json:20260814")
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.0-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.1-all.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
+1 -1
View File
@@ -20,7 +20,7 @@ pluginManagement {
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "9.4.1" apply false
id("org.jetbrains.kotlin.android") version "2.4.20" apply false
id("org.jetbrains.kotlin.android") version "2.4.21" apply false
}
include(":app")