Add largeHeap to AndroidManifest.xml (#2191)
This commit is contained in:
		
							parent
							
								
									bc42747297
								
							
						
					
					
						commit
						a5e25a7a16
					
				
					 2 changed files with 15 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -121,6 +121,7 @@ module.exports = function () {
 | 
			
		|||
            username: 'blueskysocial',
 | 
			
		||||
          },
 | 
			
		||||
        ],
 | 
			
		||||
        './plugins/withAndroidManifestPlugin.js',
 | 
			
		||||
      ].filter(Boolean),
 | 
			
		||||
      extra: {
 | 
			
		||||
        eas: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										14
									
								
								plugins/withAndroidManifestPlugin.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								plugins/withAndroidManifestPlugin.js
									
										
									
									
									
										Normal 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
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue