Work around screenshot bug

that leaks memory and runs out of heap space
This commit is contained in:
Torsten Grote committed 2026-04-03 13:21:17 -03:00
1 parent e1ec9dd8a4
commit 55a45f2b3e
1 file changed
+11
+11
View File
@@ -193,3 +193,14 @@ val gitHash: String
process.waitFor() // Ensure the command completes
return process.inputStream.use { it.readBytes().decodeToString().trim() }
}
// workaround for https://issuetracker.google.com/issues/430260686
// also https://issuetracker.google.com/issues/469819154
// and https://issuetracker.google.com/issues/444048026
tasks.withType<com.android.compose.screenshot.tasks.PreviewScreenshotValidationTask> {
maxHeapSize = "4g"
}
tasks.withType<com.android.compose.screenshot.tasks.PreviewScreenshotUpdateTask> {
maxHeapSize = "4g"
}