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
This commit is contained in:
Samuel Newman
2025-08-11 18:37:39 +03:00
committed by GitHub
parent 2a6172cbaf
commit bb949e4f44
10 changed files with 120 additions and 53 deletions
@@ -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
})
}