expo-dev-launcher 4.0.14 → 4.0.16
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,18 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 4.0.16 — 2024-05-29
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [iOS] Prevent React Native Dev Menu from showing up on launcher screen. ([#28936](https://github.com/expo/expo/pull/28936) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
|
18
|
+
|
|
19
|
+
## 4.0.15 — 2024-05-15
|
|
20
|
+
|
|
21
|
+
### 🐛 Bug fixes
|
|
22
|
+
|
|
23
|
+
- [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))
|
|
24
|
+
|
|
13
25
|
## 4.0.14 — 2024-05-09
|
|
14
26
|
|
|
15
27
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -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
|
|
263
|
+
if (shouldTryToLaunchLastOpenedBundle && lastOpenedApp != null) {
|
|
259
264
|
coroutineScope.launch {
|
|
260
265
|
try {
|
|
261
266
|
loadApp(Uri.parse(lastOpenedApp.url), activityToBeInvalidated)
|
|
@@ -330,30 +330,33 @@
|
|
|
330
330
|
[self _removeInitModuleObserver];
|
|
331
331
|
|
|
332
332
|
_appDelegate.rootViewFactory = [_appDelegate createRCTRootViewFactory];
|
|
333
|
-
UIView *rootView = [[_appDelegate rootViewFactory] viewWithModuleName:@"main"
|
|
334
|
-
initialProperties:nil
|
|
335
|
-
launchOptions:_launchOptions];
|
|
336
333
|
|
|
334
|
+
#if RCT_DEV
|
|
335
|
+
NSURL *url = [self devLauncherURL];
|
|
336
|
+
if (url != nil) {
|
|
337
|
+
// Connect to the websocket
|
|
338
|
+
[[RCTPackagerConnection sharedPackagerConnection] setSocketConnectionURL:url];
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
[self _addInitModuleObserver];
|
|
342
|
+
#endif
|
|
343
|
+
|
|
344
|
+
UIView *rootView;
|
|
337
345
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
338
346
|
selector:@selector(onAppContentDidAppear)
|
|
339
347
|
name:RCTContentDidAppearNotification
|
|
340
348
|
object:rootView];
|
|
341
349
|
|
|
350
|
+
rootView = [[_appDelegate rootViewFactory] viewWithModuleName:@"main"
|
|
351
|
+
initialProperties:nil
|
|
352
|
+
launchOptions:_launchOptions];
|
|
353
|
+
|
|
342
354
|
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
|
|
343
355
|
|
|
344
356
|
UIViewController *rootViewController = [UIViewController new];
|
|
345
357
|
rootViewController.view = rootView;
|
|
346
358
|
_window.rootViewController = rootViewController;
|
|
347
359
|
|
|
348
|
-
#if RCT_DEV
|
|
349
|
-
NSURL *url = [self devLauncherURL];
|
|
350
|
-
if (url != nil) {
|
|
351
|
-
// Connect to the websocket
|
|
352
|
-
[[RCTPackagerConnection sharedPackagerConnection] setSocketConnectionURL:url];
|
|
353
|
-
} else {
|
|
354
|
-
[self _addInitModuleObserver];
|
|
355
|
-
}
|
|
356
|
-
#endif
|
|
357
360
|
|
|
358
361
|
[_window makeKeyAndVisible];
|
|
359
362
|
}
|
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.
|
|
4
|
+
"version": "4.0.16",
|
|
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": "
|
|
69
|
+
"gitHead": "979e9f1fc3cfa9c827700dcf99992e671cfdf63e"
|
|
70
70
|
}
|