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 | |
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>
-rw-r--r-- | app.config.js | 1 | ||||
-rw-r--r-- | plugins/withAndroidManifestLaunchModePlugin.js | 17 |
2 files changed, 0 insertions, 18 deletions
diff --git a/app.config.js b/app.config.js index 0c3588c67..eafacc6cc 100644 --- a/app.config.js +++ b/app.config.js @@ -204,7 +204,6 @@ module.exports = function (config) { ], './plugins/withAndroidManifestPlugin.js', './plugins/withAndroidManifestFCMIconPlugin.js', - './plugins/withAndroidManifestLaunchModePlugin.js', './plugins/withAndroidStylesWindowBackgroundPlugin.js', './plugins/withAndroidStylesAccentColorPlugin.js', './plugins/withAndroidSplashScreenStatusBarTranslucentPlugin.js', 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 - }) -} |