Add Java 8 desugaring for flutter_local_notifications

This commit is contained in:
2026-03-27 15:12:25 +05:00
parent 9aa4943b2f
commit e4a7beae04
+4
View File
@@ -14,6 +14,7 @@ android {
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_17 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17
isCoreLibraryDesugaringEnabled = true
} }
kotlinOptions { kotlinOptions {
@@ -45,6 +46,9 @@ flutter {
} }
dependencies { dependencies {
// Core library desugaring for Java 8+ APIs
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
// Import the Firebase BoM // Import the Firebase BoM
implementation(platform("com.google.firebase:firebase-bom:34.11.0")) implementation(platform("com.google.firebase:firebase-bom:34.11.0"))