Flow를 이용해서 데이터 변화를 감지해보겠습니다.
id 'kotlin-kapt'
// ROOM
def roomVersion = "2.5.0"
implementation("androidx.room:room-runtime:$roomVersion")
annotationProcessor("androidx.room:room-compiler:$roomVersion")
// To use Kotlin annotation processing tool (kapt)
kapt("androidx.room:room-compiler:$roomVersion")
// Coroutine
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4")
// Coroutine + Room
implementation("androidx.room:room-ktx:$roomVersion")
'Android Jetpack' 카테고리의 다른 글
ROOM + Coroutine Flow - 7 (Room + Flow + ListAdapter CRUD) (0) | 2023.01.29 |
---|---|
ROOM + Coroutine Flow - 6 (Room + Flow + ListAdapter) (0) | 2023.01.28 |
ROOM + Coroutine Flow - 3 (Why Room & Coroutine - 1) (0) | 2023.01.27 |
ROOM + Coroutine Flow - 2 (ListAdapter / DiffUtil Ex) (0) | 2023.01.25 |
ROOM + Coroutine Flow - 1 (ListAdapter / DiffUtil 이란?) (0) | 2023.01.24 |