From ab5015d4b1d2fe47e49a4e283eefd110f0465a92 Mon Sep 17 00:00:00 2001 From: Prathamesh More Date: Fri, 31 Dec 2021 11:51:50 +0530 Subject: [PATCH] Added Java 8+ API desugaring, so we can use Java 8+ features on any API --- app/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 8a7ac3615..ba5a1f566 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -57,6 +57,8 @@ android { abortOnError false } compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } @@ -149,6 +151,8 @@ dependencies { kapt 'com.github.bumptech.glide:compiler:4.12.0' implementation 'com.github.bumptech.glide:okhttp3-integration:4.12.0' + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' + implementation 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:1.0.0' implementation 'com.github.bosphere.android-fadingedgelayout:fadingedgelayout:1.0.0'