diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 75293943..d8fefd0e 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -20,6 +20,10 @@ android { compileSdk = flutter.compileSdkVersion ndkVersion = flutter.ndkVersion + buildFeatures { + buildConfig = true + } + compileOptions { isCoreLibraryDesugaringEnabled = true sourceCompatibility = JavaVersion.VERSION_17 diff --git a/lib/services/ffmpeg_service.dart b/lib/services/ffmpeg_service.dart index e34c5174..bcf5bea6 100644 --- a/lib/services/ffmpeg_service.dart +++ b/lib/services/ffmpeg_service.dart @@ -1473,7 +1473,7 @@ class FFmpegService { required String m4aPath, String? coverPath, Map? metadata, - bool preserveMetadata = false, + bool preserveMetadata = true, }) async { final tempDir = await getTemporaryDirectory(); final tempOutput = _nextTempEmbedPath(tempDir.path, '.m4a');