From de3a352a0d9ad06c6b9821368988b6a1d31ae256 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 19 Oct 2022 21:10:03 -0500 Subject: [PATCH] Enable library desugaring to use Java8 features on older Android --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index cf7315c280b9e74812359e8de981e8c6db3d79d0..99b0cc8393379094d240bae42b963076e1ae4344 100644 --- a/build.gradle +++ b/build.gradle @@ -52,6 +52,8 @@ configurations { } dependencies { + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' + androidTestImplementation 'tools.fastlane:screengrab:2.1.1' androidTestImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test:runner:1.3.0' @@ -144,6 +146,7 @@ android { } compileOptions { + coreLibraryDesugaringEnabled true sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }