Add largeHeap to AndroidManifest.xml (#2191)
parent
bc42747297
commit
a5e25a7a16
|
@ -121,6 +121,7 @@ module.exports = function () {
|
|||
username: 'blueskysocial',
|
||||
},
|
||||
],
|
||||
'./plugins/withAndroidManifestPlugin.js',
|
||||
].filter(Boolean),
|
||||
extra: {
|
||||
eas: {
|
||||
|
|
|
@ -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
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue