Skip to content

Commit 7f4eff8

Browse files
committed
(Sample) Use coreLibraryDesugaring
It's required for CalendarView, ClockView, DateTimeView when below SDK 26
1 parent 4d4b8cf commit 7f4eff8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ android {
4343
compileOptions {
4444
sourceCompatibility(JavaVersion.VERSION_1_8)
4545
targetCompatibility(JavaVersion.VERSION_1_8)
46+
// Flag to enable support for the new language APIs
47+
isCoreLibraryDesugaringEnabled = true
4648
}
4749
kotlinOptions {
4850
jvmTarget = "1.8"
@@ -86,6 +88,8 @@ dependencies {
8688
// implementation("com.maxkeppeler.sheets-compose-dialogs:emoji:$sheetsVersion")
8789

8890

91+
coreLibraryDesugaring(Dependencies.DESUGAR)
92+
8993
// Kotlin libs
9094

9195
implementations(Dependencies.Kotlin.KOTLIN_STD)

0 commit comments

Comments
 (0)