mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 06:28:00 +01:00
updating commons, kotlin, gradle
This commit is contained in:
parent
267332de6b
commit
0fcd1939b0
3 changed files with 11 additions and 15 deletions
|
@ -78,7 +78,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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 'com.vanniktech:android-image-cropper:4.5.0'
|
||||||
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
||||||
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.25'
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.25'
|
||||||
|
@ -100,11 +100,11 @@ dependencies {
|
||||||
}
|
}
|
||||||
compileOnly 'com.squareup.okhttp3:okhttp:4.9.0'
|
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'
|
kapt 'androidx.room:room-compiler:2.5.2'
|
||||||
implementation 'androidx.room:room-runtime:2.4.3'
|
implementation 'androidx.room:room-runtime:2.5.2'
|
||||||
annotationProcessor 'androidx.room:room-compiler:2.4.3'
|
annotationProcessor 'androidx.room:room-compiler:2.5.2'
|
||||||
|
|
||||||
//implementation project(':commons')
|
//implementation project(':commons')
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ package com.simplemobiletools.gallery.pro.interfaces
|
||||||
|
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Insert
|
import androidx.room.Insert
|
||||||
import androidx.room.OnConflictStrategy.REPLACE
|
import androidx.room.OnConflictStrategy
|
||||||
import androidx.room.Query
|
import androidx.room.Query
|
||||||
import com.simplemobiletools.gallery.pro.helpers.RECYCLE_BIN
|
import com.simplemobiletools.gallery.pro.helpers.RECYCLE_BIN
|
||||||
import com.simplemobiletools.gallery.pro.models.Directory
|
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")
|
@Query("SELECT path, thumbnail, filename, media_count, last_modified, date_taken, size, location, media_types, sort_value FROM directories")
|
||||||
fun getAll(): List<Directory>
|
fun getAll(): List<Directory>
|
||||||
|
|
||||||
@Insert(onConflict = REPLACE)
|
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||||
fun insert(directory: Directory)
|
fun insert(directory: Directory)
|
||||||
|
|
||||||
@Insert(onConflict = REPLACE)
|
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||||
fun insertAll(directories: List<Directory>)
|
fun insertAll(directories: List<Directory>)
|
||||||
|
|
||||||
@Query("DELETE FROM directories WHERE path = :path COLLATE NOCASE")
|
@Query("DELETE FROM directories WHERE path = :path COLLATE NOCASE")
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
package com.simplemobiletools.gallery.pro.interfaces
|
package com.simplemobiletools.gallery.pro.interfaces
|
||||||
|
|
||||||
import androidx.room.Dao
|
import androidx.room.*
|
||||||
import androidx.room.Delete
|
|
||||||
import androidx.room.Insert
|
|
||||||
import androidx.room.OnConflictStrategy.REPLACE
|
|
||||||
import androidx.room.Query
|
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.simplemobiletools.gallery.pro.models.Medium
|
||||||
|
|
||||||
@Dao
|
@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")
|
@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>
|
fun getOldRecycleBinItems(timestmap: Long): List<Medium>
|
||||||
|
|
||||||
@Insert(onConflict = REPLACE)
|
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||||
fun insert(medium: Medium)
|
fun insert(medium: Medium)
|
||||||
|
|
||||||
@Insert(onConflict = REPLACE)
|
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||||
fun insertAll(media: List<Medium>)
|
fun insertAll(media: List<Medium>)
|
||||||
|
|
||||||
@Delete
|
@Delete
|
||||||
|
|
Loading…
Reference in a new issue