diff options
author | Eric Bailey <git@esb.lol> | 2023-12-12 15:40:24 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 13:40:24 -0800 |
commit | a5e25a7a16cdcde64628e942c073a119bc1d7a1e (patch) | |
tree | 3d56863a0820f5448434d8d8ac93b50dd38afb7f | |
parent | bc427472971e936637cb650f44443ea3ae25a721 (diff) | |
download | voidsky-a5e25a7a16cdcde64628e942c073a119bc1d7a1e.tar.zst |
Add largeHeap to AndroidManifest.xml (#2191)
-rw-r--r-- | app.config.js | 1 | ||||
-rw-r--r-- | plugins/withAndroidManifestPlugin.js | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/app.config.js b/app.config.js index 181a67c46..e4606de6c 100644 --- a/app.config.js +++ b/app.config.js @@ -121,6 +121,7 @@ module.exports = function () { username: 'blueskysocial', }, ], + './plugins/withAndroidManifestPlugin.js', ].filter(Boolean), extra: { eas: { diff --git a/plugins/withAndroidManifestPlugin.js b/plugins/withAndroidManifestPlugin.js new file mode 100644 index 000000000..55fd3f5ca --- /dev/null +++ b/plugins/withAndroidManifestPlugin.js @@ -0,0 +1,14 @@ +const {withAndroidManifest} = require('expo/config-plugins') + +module.exports = function withAndroidManifestPlugin(appConfig) { + return withAndroidManifest(appConfig, function (decoratedAppConfig) { + try { + decoratedAppConfig.modResults.manifest.application[0].$[ + 'android:largeHeap' + ] = 'true' + } catch (e) { + console.error(`withAndroidManifestPlugin failed`, e) + } + return decoratedAppConfig + }) +} |