Update some dependencies

This commit is contained in:
Shinokuni 2024-02-29 10:48:41 +01:00
parent 6bf7cb00a8
commit 2ee2144fd3
4 changed files with 17 additions and 15 deletions

View File

@ -68,12 +68,12 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
def composeBom = platform('androidx.compose:compose-bom:2023.10.01')
def composeBom = platform('androidx.compose:compose-bom:2024.02.01')
implementation composeBom
androidTestImplementation composeBom
implementation 'androidx.palette:palette-ktx:1.0.0'
implementation 'androidx.activity:activity-compose:1.7.2'
implementation 'androidx.activity:activity-compose:1.8.2'
implementation 'androidx.compose.material3:material3'
implementation "com.google.accompanist:accompanist-swiperefresh:0.30.1"
@ -86,10 +86,11 @@ dependencies {
implementation "cafe.adriel.voyager:voyager-koin:$voyager"
implementation "cafe.adriel.voyager:voyager-transitions:$voyager"
debugImplementation "androidx.compose.ui:ui-tooling:1.4.3"
implementation "androidx.compose.ui:ui-tooling-preview:1.4.3"
def tooling = "1.6.2"
debugImplementation "androidx.compose.ui:ui-tooling:$tooling"
implementation "androidx.compose.ui:ui-tooling-preview:$tooling"
def lifecycle_version = "2.6.1"
def lifecycle_version = "2.7.0"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:$lifecycle_version"
@ -111,7 +112,8 @@ dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1"
implementation "androidx.lifecycle:lifecycle-runtime-compose:2.6.1"
def lifecycle = "2.7.0"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle"
implementation "androidx.lifecycle:lifecycle-runtime-compose:$lifecycle"
}

View File

@ -76,7 +76,7 @@ dependencies {
androidTestImplementation 'androidx.test:rules:1.4.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
def room_version = "2.4.3"
def room_version = "2.6.1"
api "androidx.room:room-runtime:$room_version"
api "androidx.room:room-ktx:$room_version"
kapt "androidx.room:room-compiler:$room_version"

View File

@ -17,17 +17,17 @@ interface BaseDao<T> {
fun compatInsert(entity: T): Long
@Insert
fun insert(entities: List<T>?): List<Long>
fun insert(entities: List<T>): List<Long>
@Update
fun update(entity: T): Completable
@Update
fun update(entities: List<T>?): Completable
fun update(entities: List<T>): Completable
@Delete
fun delete(entity: T): Completable
@Delete
fun delete(entities: List<T>?): Completable
fun delete(entities: List<T>): Completable
}

View File

@ -10,17 +10,17 @@ interface NewBaseDao<T> {
suspend fun insert(entity: T): Long
@Insert
suspend fun insert(entities: List<T>?): List<Long>
suspend fun insert(entities: List<T>): List<Long>
@Update
suspend fun update(entity: T)
@Update
suspend fun update(entities: List<T>?)
suspend fun update(entities: List<T>)
@Delete
suspend fun delete(entity: T)
@Delete
suspend fun delete(entities: List<T>?)
suspend fun delete(entities: List<T>)
}