diff --git a/FlowCrypt/build.gradle.kts b/FlowCrypt/build.gradle.kts index 2fee9e8fe..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", @@ -507,7 +511,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")