Skip to content

Commit 32c61f3

Browse files
committed
Merge remote-tracking branch 'origin/dependabot/gradle/androidx.test-core-ktx-1.7.0' into dependabot/gradle/androidx.test-core-ktx-1.7.0
2 parents bae7c1c + 2dde0e1 commit 32c61f3

3 files changed

Lines changed: 400 additions & 164 deletions

File tree

FlowCrypt/build.gradle.kts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ val devDebugImplementation: Configuration by configurations.creating
400400
val uiTestsImplementation by configurations.named("uiTestsImplementation")
401401

402402
dependencies {
403-
ksp("com.github.bumptech.glide:ksp:4.16.0")
403+
ksp("com.github.bumptech.glide:ksp:5.0.4")
404404
ksp("androidx.annotation:annotation:1.9.1")
405405
ksp("androidx.room:room-compiler:2.7.2")
406406
//ACRA needs the following dependency to use a custom report sender
@@ -428,12 +428,12 @@ dependencies {
428428
androidTestImplementation("androidx.room:room-testing:2.7.2")
429429
androidTestImplementation("androidx.arch.core:core-testing:2.2.0")
430430
androidTestImplementation("androidx.work:work-testing:2.10.3")
431-
androidTestImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
432-
androidTestImplementation("com.squareup.okhttp3:okhttp-tls:4.12.0")
431+
androidTestImplementation("com.squareup.okhttp3:mockwebserver:5.1.0")
432+
androidTestImplementation("com.squareup.okhttp3:okhttp-tls:5.1.0")
433433
androidTestImplementation("com.athaydes.rawhttp:rawhttp-core:2.6.0")
434434
androidTestUtil("androidx.test:orchestrator:1.6.1")
435435

436-
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
436+
testImplementation("com.squareup.okhttp3:mockwebserver:5.1.0")
437437
testImplementation("com.flextrade.jfixture:jfixture:2.7.2")
438438
testImplementation("com.shazam:shazamcrest:0.11")
439439
testImplementation("org.robolectric:robolectric:4.14.1")
@@ -490,20 +490,20 @@ dependencies {
490490
implementation("com.squareup.retrofit2:converter-gson:3.0.0")
491491
implementation("com.squareup.retrofit2:converter-scalars:3.0.0")
492492
implementation("com.squareup.okio:okio:3.16.0")
493-
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
493+
implementation("com.squareup.okhttp3:logging-interceptor:5.1.0")
494494

495-
implementation("com.github.bumptech.glide:glide:4.16.0")
495+
implementation("com.github.bumptech.glide:glide:5.0.4")
496496
implementation("com.nulab-inc:zxcvbn:1.9.0")
497497
implementation("com.burhanrashid52:photoeditor:3.0.2")
498498
implementation("com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20240325.1")
499499
implementation("com.sandinh:zbase32-commons-codec_2.12:1.0.0")
500500
implementation("org.bitbucket.b_c:jose4j:0.9.6")
501-
implementation("org.jsoup:jsoup:1.21.1")
501+
implementation("org.jsoup:jsoup:1.21.2")
502502
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
503503
implementation("org.pgpainless:pgpainless-core:1.7.6")
504504
implementation("org.eclipse.angus:angus-mail:2.0.4")
505505
implementation("org.eclipse.angus:gimap:2.0.4")
506-
implementation("commons-io:commons-io:2.19.0")
506+
implementation("commons-io:commons-io:2.20.0")
507507
implementation("net.openid:appauth:0.11.1")
508508
implementation("ch.acra:acra-http:5.12.0")
509509
implementation("io.github.everythingme:overscroll-decor-android:1.1.1")

FlowCrypt/src/main/java/com/flowcrypt/email/api/email/MsgsCacheManager.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ import jakarta.mail.internet.MimeMessage
1515
import kotlinx.coroutines.Dispatchers
1616
import kotlinx.coroutines.delay
1717
import kotlinx.coroutines.withContext
18-
import okhttp3.internal.io.FileSystem
18+
import okio.FileSystem
19+
import okio.Path.Companion.toOkioPath
1920
import okio.buffer
2021
import org.pgpainless.PGPainless
2122
import java.io.File
@@ -36,10 +37,10 @@ object MsgsCacheManager {
3637

3738
fun init(context: Context) {
3839
diskLruCache = DiskLruCache(
39-
FileSystem.SYSTEM,
40-
File(context.filesDir, CACHE_DIR_NAME),
41-
CACHE_VERSION,
42-
CACHE_SIZE
40+
fileSystem = FileSystem.SYSTEM,
41+
directory = File(context.filesDir, CACHE_DIR_NAME).toOkioPath(),
42+
appVersion = CACHE_VERSION,
43+
maxSize = CACHE_SIZE
4344
)
4445
}
4546

0 commit comments

Comments
 (0)