From de17a075e6b9900f6512a130cc257c46935ebaf2 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Thu, 9 May 2024 13:27:50 +0530 Subject: [PATCH] Updated build.gradle that enables desugaring --- android/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index c41d6b7b7..61d11698a 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -26,6 +26,8 @@ android { compileSdkVersion 30 defaultConfig { + // Required when setting minSdkVersion to 20 or lower + multiDexEnabled true buildConfigField 'String', 'LIBRARY_NAME', '"android"' buildConfigField 'String', 'VERSION', "\"$version\"" minSdkVersion 19 @@ -43,6 +45,8 @@ android { } compileOptions { + // Flag to enable support for the new language APIs + coreLibraryDesugaringEnabled true sourceCompatibility 1.8 targetCompatibility 1.8 } @@ -86,6 +90,7 @@ tasks.withType(com.android.build.gradle.internal.tasks.AndroidTestTask) { task - apply from: '../dependencies.gradle' dependencies { + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.9' implementation 'com.google.firebase:firebase-messaging:22.0.0' androidTestImplementation 'com.android.support.test:runner:0.5' androidTestImplementation 'com.android.support.test:rules:0.5'