From 78495f512515aa9a36942e2cf2310b8dfce2b460 Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Sun, 18 Oct 2020 17:25:25 +0530 Subject: [PATCH] Add Room KTX and coroutine dependencies. --- app/build.gradle | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index fe52e34f8..bf0c59a78 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -76,6 +76,11 @@ android { } } +ext { + room_version = '2.2.5' + coroutines_version = '1.3.9' +} + dependencies { implementation 'com.simplemobiletools:commons:5.32.4' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' @@ -96,9 +101,14 @@ dependencies { kapt 'com.github.bumptech.glide:compiler:4.10.0' - kapt 'androidx.room:room-compiler:2.2.5' - implementation 'androidx.room:room-runtime:2.2.5' - annotationProcessor 'androidx.room:room-compiler:2.2.5' + implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.2.0' + implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version" + implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version" + + kapt "androidx.room:room-compiler:$room_version" + implementation "androidx.room:room-ktx:$room_version" + implementation "androidx.room:room-runtime:$room_version" + annotationProcessor "androidx.room:room-compiler:$room_version" } // Apply the PESDKPlugin