diff --git a/app/build.gradle b/app/build.gradle index 539f5cec5..e7799fc94 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -78,7 +78,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:930c670513' + implementation 'com.github.SimpleMobileTools:Simple-Commons:571e8e3ef2' implementation 'com.vanniktech:android-image-cropper:4.5.0' implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.25' @@ -100,11 +100,11 @@ dependencies { } compileOnly 'com.squareup.okhttp3:okhttp:4.9.0' - kapt 'com.github.bumptech.glide:compiler:4.13.2' + kapt 'com.github.bumptech.glide:compiler:4.15.1' - kapt 'androidx.room:room-compiler:2.4.3' - implementation 'androidx.room:room-runtime:2.4.3' - annotationProcessor 'androidx.room:room-compiler:2.4.3' + kapt 'androidx.room:room-compiler:2.5.2' + implementation 'androidx.room:room-runtime:2.5.2' + annotationProcessor 'androidx.room:room-compiler:2.5.2' //implementation project(':commons') } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/interfaces/DirectoryDao.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/interfaces/DirectoryDao.kt index 75acd43c4..aa0aaaaca 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/interfaces/DirectoryDao.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/interfaces/DirectoryDao.kt @@ -2,7 +2,7 @@ package com.simplemobiletools.gallery.pro.interfaces import androidx.room.Dao import androidx.room.Insert -import androidx.room.OnConflictStrategy.REPLACE +import androidx.room.OnConflictStrategy import androidx.room.Query import com.simplemobiletools.gallery.pro.helpers.RECYCLE_BIN import com.simplemobiletools.gallery.pro.models.Directory @@ -12,10 +12,10 @@ interface DirectoryDao { @Query("SELECT path, thumbnail, filename, media_count, last_modified, date_taken, size, location, media_types, sort_value FROM directories") fun getAll(): List - @Insert(onConflict = REPLACE) + @Insert(onConflict = OnConflictStrategy.REPLACE) fun insert(directory: Directory) - @Insert(onConflict = REPLACE) + @Insert(onConflict = OnConflictStrategy.REPLACE) fun insertAll(directories: List) @Query("DELETE FROM directories WHERE path = :path COLLATE NOCASE") diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/interfaces/MediumDao.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/interfaces/MediumDao.kt index 09c1c1bd6..22bd3af6a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/interfaces/MediumDao.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/interfaces/MediumDao.kt @@ -1,10 +1,6 @@ package com.simplemobiletools.gallery.pro.interfaces -import androidx.room.Dao -import androidx.room.Delete -import androidx.room.Insert -import androidx.room.OnConflictStrategy.REPLACE -import androidx.room.Query +import androidx.room.* import com.simplemobiletools.gallery.pro.models.Medium @Dao @@ -27,10 +23,10 @@ interface MediumDao { @Query("SELECT filename, full_path, parent_path, last_modified, date_taken, size, type, video_duration, is_favorite, deleted_ts, media_store_id FROM media WHERE deleted_ts < :timestmap AND deleted_ts != 0") fun getOldRecycleBinItems(timestmap: Long): List - @Insert(onConflict = REPLACE) + @Insert(onConflict = OnConflictStrategy.REPLACE) fun insert(medium: Medium) - @Insert(onConflict = REPLACE) + @Insert(onConflict = OnConflictStrategy.REPLACE) fun insertAll(media: List) @Delete