fix: preserve existing M4A metadata during embed and enable BuildConfig generation

This commit is contained in:
zarzet
2026-04-13 02:47:59 +07:00
parent b77def62f4
commit 88d22477d5
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -20,6 +20,10 @@ android {
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
buildFeatures {
buildConfig = true
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_17
+1 -1
View File
@@ -1473,7 +1473,7 @@ class FFmpegService {
required String m4aPath,
String? coverPath,
Map<String, String>? metadata,
bool preserveMetadata = false,
bool preserveMetadata = true,
}) async {
final tempDir = await getTemporaryDirectory();
final tempOutput = _nextTempEmbedPath(tempDir.path, '.m4a');