diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-08-11 18:37:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-11 08:37:39 -0700 |
commit | bb949e4f44c4ed1e19c7bddc5779515b419a7022 (patch) | |
tree | 9cb70c6573ee6c4224de38b625f91483e52a5983 /plugins/withAndroidManifestLargeHeapPlugin.js | |
parent | 2a6172cbaf2db0eda2a7cd2afaeef4b60aadf3ba (diff) | |
download | voidsky-bb949e4f44c4ed1e19c7bddc5779515b419a7022.tar.zst |
Fix translations on Android using PROCESS_TEXT intent (#8486)
* use intents to translate text on android * clean up config plugins * restore day night plugin just to be safe * leave a comment for why we can't open translate directly * add todo * fix lockfile lint
Diffstat (limited to 'plugins/withAndroidManifestLargeHeapPlugin.js')
-rw-r--r-- | plugins/withAndroidManifestLargeHeapPlugin.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/withAndroidManifestLargeHeapPlugin.js b/plugins/withAndroidManifestLargeHeapPlugin.js new file mode 100644 index 000000000..55fd3f5ca --- /dev/null +++ b/plugins/withAndroidManifestLargeHeapPlugin.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 + }) +} |