updating commons, kotlin, gradle
This commit is contained in:
parent
267332de6b
commit
0fcd1939b0
|
@ -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')
|
||||
}
|
||||
|
|
|
@ -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<Directory>
|
||||
|
||||
@Insert(onConflict = REPLACE)
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
fun insert(directory: Directory)
|
||||
|
||||
@Insert(onConflict = REPLACE)
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
fun insertAll(directories: List<Directory>)
|
||||
|
||||
@Query("DELETE FROM directories WHERE path = :path COLLATE NOCASE")
|
||||
|
|
|
@ -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<Medium>
|
||||
|
||||
@Insert(onConflict = REPLACE)
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
fun insert(medium: Medium)
|
||||
|
||||
@Insert(onConflict = REPLACE)
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
fun insertAll(media: List<Medium>)
|
||||
|
||||
@Delete
|
||||
|
|
Loading…
Reference in New Issue