Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: add desugaring for flutter_local_notifications to work

Prateek Sunalbaa3d49d4ba2
diff --git a/mobile/android/app/build.gradle b/mobile/android/app/build.gradle
index 8c3148fae8..4719aee87b 100644
--- a/mobile/android/app/build.gradle
+++ b/mobile/android/app/build.gradle
@@ -34,6 +34,7 @@ android {
ndkVersion = flutter.ndkVersion
compileOptions {
+ coreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
@@ -132,7 +133,7 @@ flutter {
source = "../.."
}
-dependencies {
+dependencies {
implementation 'io.sentry:sentry-android:2.0.0'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.21'
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0'
@@ -142,4 +143,5 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
+ coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
}
\ No newline at end of file