From a2cb0f073c1124df270ebba6d41989c31336d1a1 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 11 Sep 2020 23:18:17 +0530 Subject: [PATCH] build: move library desugaring to app module for runtime compatibility Signed-off-by: Harsh Shandilya --- app/build.gradle | 3 +++ data/build.gradle | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index c39947a6..653b4dec 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -15,6 +15,8 @@ android { } } + compileOptions.coreLibraryDesugaringEnabled = true + buildFeatures.compose = true composeOptions { @@ -48,4 +50,5 @@ dependencies { implementation 'com.google.android.material:material:1.3.0-alpha02' testImplementation 'junit:junit:4.13' androidTestImplementation "androidx.ui:ui-test:$compose_version" + coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.0.10" } diff --git a/data/build.gradle b/data/build.gradle index 066766aa..97b4eaca 100644 --- a/data/build.gradle +++ b/data/build.gradle @@ -3,15 +3,8 @@ plugins { id 'kotlin-kapt' } -android { - compileOptions { - coreLibraryDesugaringEnabled true - } -} - dependencies { kapt "androidx.room:room-compiler:$room_version" api "androidx.room:room-runtime:$room_version" api "androidx.room:room-ktx:$room_version" - coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.0.10" }