diff options
author | Hailey <me@haileyok.com> | 2024-06-06 11:08:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-06 19:08:20 +0100 |
commit | 094c08ea60e95438a991354cd0f5ec9e42b3deb1 (patch) | |
tree | 12a4aad069ab8341b48e20ee22c469040e2302a3 /plugins | |
parent | 559764156d707aaf874753546db74572b81f1271 (diff) | |
download | voidsky-094c08ea60e95438a991354cd0f5ec9e42b3deb1.tar.zst |
Revert "Change Android's MainActivity launchMode to singleTop" (#4397)
* Revert "Change Android's MainActivity launchMode to singleTop (#4255)" This reverts commit 65ad16e394d0525d68e6fc8cd9508de4675c88d5. * Update bundle-deploy-eas-update.yml --------- Co-authored-by: dan <dan.abramov@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/withAndroidManifestLaunchModePlugin.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/plugins/withAndroidManifestLaunchModePlugin.js b/plugins/withAndroidManifestLaunchModePlugin.js deleted file mode 100644 index 45ab9aeb7..000000000 --- a/plugins/withAndroidManifestLaunchModePlugin.js +++ /dev/null @@ -1,17 +0,0 @@ -const {withAndroidManifest} = require('expo/config-plugins') - -module.exports = function withAndroidManifestLaunchModePlugin(appConfig) { - return withAndroidManifest(appConfig, function (decoratedAppConfig) { - try { - const mainApplication = - decoratedAppConfig.modResults.manifest.application[0] - const mainActivity = mainApplication.activity.find( - elem => elem.$['android:name'] === '.MainActivity', - ) - mainActivity.$['android:launchMode'] = 'singleTop' - } catch (e) { - console.error(`withAndroidManifestLaunchModePlugin failed`, e) - } - return decoratedAppConfig - }) -} |