my fork of the bluesky client

Add largeHeap to AndroidManifest.xml (#2191)

authored by

Eric Bailey and committed by
GitHub
a5e25a7a bc427472

+15
+1
app.config.js
··· 121 121 username: 'blueskysocial', 122 122 }, 123 123 ], 124 + './plugins/withAndroidManifestPlugin.js', 124 125 ].filter(Boolean), 125 126 extra: { 126 127 eas: {
+14
plugins/withAndroidManifestPlugin.js
··· 1 + const {withAndroidManifest} = require('expo/config-plugins') 2 + 3 + module.exports = function withAndroidManifestPlugin(appConfig) { 4 + return withAndroidManifest(appConfig, function (decoratedAppConfig) { 5 + try { 6 + decoratedAppConfig.modResults.manifest.application[0].$[ 7 + 'android:largeHeap' 8 + ] = 'true' 9 + } catch (e) { 10 + console.error(`withAndroidManifestPlugin failed`, e) 11 + } 12 + return decoratedAppConfig 13 + }) 14 + }