diff --git a/stream-chat-android-compose/build.gradle.kts b/stream-chat-android-compose/build.gradle.kts index 6b8d48c7e90..d1ac23a0cf1 100644 --- a/stream-chat-android-compose/build.gradle.kts +++ b/stream-chat-android-compose/build.gradle.kts @@ -55,6 +55,12 @@ baselineProfile { } } +// Paparazzi renders and compresses every snapshot in the forked test worker, which defaults to a +// 512 MB heap. Raise it so recordPaparazziDebug / verifyPaparazziDebug do not run out of memory. +tasks.withType().configureEach { + maxHeapSize = "4g" +} + tasks.withType { compilerOptions.freeCompilerArgs.addAll( listOf(