update commons to 3.17.14
This commit is contained in:
parent
1b5b7fb9f4
commit
6ac6109d5e
4 changed files with 5 additions and 7 deletions
|
@ -46,10 +46,9 @@ ext {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:3.16.15'
|
||||
implementation 'com.simplemobiletools:commons:3.17.14'
|
||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
|
||||
implementation 'com.android.support:multidex:1.0.3'
|
||||
implementation 'com.google.code.gson:gson:2.8.2'
|
||||
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
||||
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.8'
|
||||
implementation 'com.github.chrisbanes:PhotoView:2.1.3'
|
||||
|
|
|
@ -235,7 +235,7 @@ fun Activity.loadJpg(path: String, target: MySquareImageView, cropThumbnails: Bo
|
|||
|
||||
fun Activity.getCachedDirectories(): ArrayList<Directory> {
|
||||
val token = object : TypeToken<List<Directory>>() {}.type
|
||||
return Gson().fromJson<ArrayList<Directory>>(config.directories, token) ?: ArrayList<Directory>(1)
|
||||
return Gson().fromJson<ArrayList<Directory>>(config.directories, token) ?: ArrayList(1)
|
||||
}
|
||||
|
||||
fun Activity.getCachedMedia(path: String): ArrayList<Medium> {
|
||||
|
|
|
@ -161,6 +161,5 @@ fun Context.updateStoredDirectories() {
|
|||
|
||||
fun Context.storeDirectoryItems(items: ArrayList<Directory>) {
|
||||
val subList = items.subList(0, Math.min(SAVE_DIRS_CNT, items.size))
|
||||
val directories = Gson().toJson(subList)
|
||||
config.directories = directories
|
||||
config.directories = Gson().toJson(subList)
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.2.30'
|
||||
ext.kotlin_version = '1.2.31'
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
|
@ -9,7 +9,7 @@ buildscript {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.0.1'
|
||||
classpath 'com.android.tools.build:gradle:3.1.0'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
|
|
Loading…
Reference in a new issue