From c9eac94be1320ca4dae3dd450194fa4e0b0f7929 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 22 Nov 2026 20:06:01 +0000 Subject: [PATCH 1/2] Build(deps): bump org.robolectric:robolectric from 4.17 to 4.18.1 Bumps [org.robolectric:robolectric](https://github.com/robolectric/robolectric) from 4.17 to 4.18.1. - [Release notes](https://github.com/robolectric/robolectric/releases) - [Commits](https://github.com/robolectric/robolectric/compare/robolectric-4.17...robolectric-4.18.1) --- updated-dependencies: - dependency-name: org.robolectric:robolectric dependency-version: 4.18.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- FlowCrypt/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FlowCrypt/build.gradle.kts b/FlowCrypt/build.gradle.kts index 669d058f4..969914603 100644 --- a/FlowCrypt/build.gradle.kts +++ b/FlowCrypt/build.gradle.kts @@ -505,7 +505,7 @@ dependencies { testImplementation("com.squareup.okhttp3:mockwebserver:5.5.1") testImplementation("com.flextrade.jfixture:jfixture:2.7.2") testImplementation("com.shazam:shazamcrest:0.11") - testImplementation("org.robolectric:robolectric:4.17") + testImplementation("org.robolectric:robolectric:4.18.1") //we need it to test Parcelable implementation testImplementation("org.jetbrains.kotlin:kotlin-reflect:2.4.21") testImplementation("junit:junit:4.13.2") From 07e653b6a58bb337f026b153aa2a3bf47d088b3f Mon Sep 17 00:00:00 2001 From: Denys Bondarenko Date: Wed, 2 Dec 2026 15:43:16 +0200 Subject: [PATCH 2/2] build: raise unit test heap to 2g for Robolectric 4.18 Robolectric 4.18.1 ships newer android-all images for SDK 35 and 36, which use more memory per SDK sandbox. Tests with @Config(minSdk = MIN_SDK_VERSION) run on every SDK from 29 to 36 in one test JVM, and the Gradle default heap (512m) runs out: the unit test job fails with OutOfMemoryError and then hangs. --- FlowCrypt/build.gradle.kts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FlowCrypt/build.gradle.kts b/FlowCrypt/build.gradle.kts index 0e8bfe72f..b48aecbae 100644 --- a/FlowCrypt/build.gradle.kts +++ b/FlowCrypt/build.gradle.kts @@ -252,6 +252,10 @@ android { } unitTests.all { + //Robolectric keeps a sandbox per SDK in one test JVM, and tests with + //@Config(minSdk = ...) run on every SDK from minSdk up. The Gradle default (512m) + //is not enough since Robolectric 4.18. + it.maxHeapSize = "2g" it.jvmArgs( "--add-opens=java.base/java.lang=ALL-UNNAMED", "--add-opens=java.base/java.util=ALL-UNNAMED",