about summary refs log tree commit diff
path: root/plugins/withAndroidManifestLaunchModePlugin.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/withAndroidManifestLaunchModePlugin.js')
-rw-r--r--plugins/withAndroidManifestLaunchModePlugin.js17
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
-  })
-}