expo-dev-launcher 4.0.14 → 4.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 4.0.15 — 2024-05-15
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [Android] Removes the unnecessary reload when opening the backgrounded app from the icon. ([#28893](https://github.com/expo/expo/pull/28893) by [@lukmccall](https://github.com/lukmccall))
18
+
13
19
  ## 4.0.14 — 2024-05-09
14
20
 
15
21
  _This version does not introduce any user-facing changes._
@@ -17,7 +17,7 @@ android {
17
17
  namespace "expo.modules.devlauncher"
18
18
  defaultConfig {
19
19
  versionCode 9
20
- versionName "4.0.14"
20
+ versionName "4.0.15"
21
21
  }
22
22
 
23
23
  buildTypes {
@@ -253,9 +253,14 @@ class DevLauncherController private constructor() :
253
253
  }
254
254
 
255
255
  intent?.let {
256
+ // If the app is already open or the intent is not a main intent, we don't want to handle it.
257
+ if (mode == Mode.APP || intent.action != Intent.ACTION_MAIN) {
258
+ return@let
259
+ }
260
+
256
261
  val shouldTryToLaunchLastOpenedBundle = getMetadataValue(context, "DEV_CLIENT_TRY_TO_LAUNCH_LAST_BUNDLE", "true").toBoolean()
257
262
  val lastOpenedApp = recentlyOpedAppsRegistry.getMostRecentApp()
258
- if (shouldTryToLaunchLastOpenedBundle && lastOpenedApp != null && intent.action == Intent.ACTION_MAIN) {
263
+ if (shouldTryToLaunchLastOpenedBundle && lastOpenedApp != null) {
259
264
  coroutineScope.launch {
260
265
  try {
261
266
  loadApp(Uri.parse(lastOpenedApp.url), activityToBeInvalidated)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-dev-launcher",
3
3
  "title": "Expo Development Launcher",
4
- "version": "4.0.14",
4
+ "version": "4.0.15",
5
5
  "description": "Pre-release version of the Expo development launcher package for testing.",
6
6
  "main": "build/DevLauncher.js",
7
7
  "types": "build/DevLauncher.d.ts",
@@ -66,5 +66,5 @@
66
66
  "./setupTests.ts"
67
67
  ]
68
68
  },
69
- "gitHead": "9857711b8ec18ddecd36f9291ade5ccccbabddbc"
69
+ "gitHead": "82b5a4a7ada98ca26cd99d097400b01240cbcf99"
70
70
  }