Add largeHeap to AndroidManifest.xml (#2191)

zio/stable
Eric Bailey 2023-12-12 15:40:24 -06:00 committed by GitHub
parent bc42747297
commit a5e25a7a16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -121,6 +121,7 @@ module.exports = function () {
username: 'blueskysocial', username: 'blueskysocial',
}, },
], ],
'./plugins/withAndroidManifestPlugin.js',
].filter(Boolean), ].filter(Boolean),
extra: { extra: {
eas: { eas: {

View File

@ -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
})
}