22 lines · 695 B · JavaScript
RawDownload
const { withGradleProperties } = require("expo/config-plugins"); // The Expo template's 2GB heap is too small for D8 dex merging in this app,// causing OutOfMemoryError in :app:mergeExtDexDebug.const JVM_ARGS = "-Xmx4096m -XX:MaxMetaspaceSize=1024m"; module.exports = function withAndroidGradleHeap(config) {  return withGradleProperties(config, (nextConfig) => {    const properties = nextConfig.modResults.filter(      (item) => !(item.type === "property" && item.key === "org.gradle.jvmargs"),    );     properties.push({      type: "property",      key: "org.gradle.jvmargs",      value: JVM_ARGS,    });     nextConfig.modResults = properties;    return nextConfig;  });};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t