mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-05-24 08:25:00 -04:00
Work around screenshot bug
that leaks memory and runs out of heap space
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user