From bb949e4f44c4ed1e19c7bddc5779515b419a7022 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 11 Aug 2025 18:37:39 +0300 Subject: 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 --- plugins/withAndroidManifestLargeHeapPlugin.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 plugins/withAndroidManifestLargeHeapPlugin.js (limited to 'plugins/withAndroidManifestLargeHeapPlugin.js') 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 + }) +} -- cgit 1.4.1