Update dependencies and clean up

[ci skip]
This commit is contained in:
Julian Raufelder 2021-01-20 15:50:16 +01:00
parent f83768ea4a
commit 527dde9304
No known key found for this signature in database
GPG Key ID: 17EE71F6634E381D
2 changed files with 3 additions and 4 deletions

View File

@ -27,7 +27,7 @@ ext {
rxAndroidVersion = '2.1.1'
rxBindingVersion = '2.2.0'
daggerVersion = '2.31'
daggerVersion = '2.31.1'
gsonVersion = '2.8.6'
@ -49,7 +49,7 @@ ext {
// cloud provider libs
// do not update to 1.4.0 until dropping minsdk 4.x
// do not update to 1.4.0 until minsdk is 7.x (or desugaring works better) otherwise it will crash on 6.x
cryptolibVersion = '1.3.0'
dropboxVersion = '3.1.5'

View File

@ -17,10 +17,9 @@ import java.io.*
import java.util.*
import javax.inject.Inject
class FileUtil @Inject constructor(private val context: Context, mimeTypes: MimeTypes) {
class FileUtil @Inject constructor(private val context: Context, private val mimeTypes: MimeTypes) {
private var decryptedFileStorage: File = File(context.cacheDir, "decrypted")
private val mimeTypes: MimeTypes = mimeTypes
fun cleanup() {
cleanupDir(context.cacheDir)