expo-dev-launcher 5.0.16 → 5.0.18
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 +8 -0
- package/android/build.gradle +1 -1
- package/ios/EXDevLauncherController.m +39 -11
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 5.0.18 — 2024-11-29
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 5.0.17 — 2024-11-22
|
|
18
|
+
|
|
19
|
+
_This version does not introduce any user-facing changes._
|
|
20
|
+
|
|
13
21
|
## 5.0.16 — 2024-11-22
|
|
14
22
|
|
|
15
23
|
### 💡 Others
|
package/android/build.gradle
CHANGED
|
@@ -274,20 +274,28 @@
|
|
|
274
274
|
return;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
+
void (^navigateToLauncher)(NSError *) = ^(NSError *error) {
|
|
278
|
+
__weak typeof(self) weakSelf = self;
|
|
279
|
+
dispatch_async(dispatch_get_main_queue(), ^{
|
|
280
|
+
typeof(self) self = weakSelf;
|
|
281
|
+
if (!self) {
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
[self navigateToLauncher];
|
|
286
|
+
});
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
NSURL* initialUrl = [EXDevLauncherController initialUrlFromProcessInfo];
|
|
290
|
+
if (initialUrl) {
|
|
291
|
+
[self loadApp:initialUrl withProjectUrl:nil onSuccess:nil onError:navigateToLauncher];
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
|
|
277
295
|
NSNumber *devClientTryToLaunchLastBundleValue = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"DEV_CLIENT_TRY_TO_LAUNCH_LAST_BUNDLE"];
|
|
278
296
|
BOOL shouldTryToLaunchLastOpenedBundle = (devClientTryToLaunchLastBundleValue != nil) ? [devClientTryToLaunchLastBundleValue boolValue] : YES;
|
|
279
297
|
if (_lastOpenedAppUrl != nil && shouldTryToLaunchLastOpenedBundle) {
|
|
280
|
-
[self loadApp:_lastOpenedAppUrl withProjectUrl:nil onSuccess:nil onError
|
|
281
|
-
__weak typeof(self) weakSelf = self;
|
|
282
|
-
dispatch_async(dispatch_get_main_queue(), ^{
|
|
283
|
-
typeof(self) self = weakSelf;
|
|
284
|
-
if (!self) {
|
|
285
|
-
return;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
[self navigateToLauncher];
|
|
289
|
-
});
|
|
290
|
-
}];
|
|
298
|
+
[self loadApp:_lastOpenedAppUrl withProjectUrl:nil onSuccess:nil onError:navigateToLauncher];
|
|
291
299
|
return;
|
|
292
300
|
}
|
|
293
301
|
[self navigateToLauncher];
|
|
@@ -808,4 +816,24 @@
|
|
|
808
816
|
[self loadApp:appUrl onSuccess:nil onError:nil];
|
|
809
817
|
}
|
|
810
818
|
|
|
819
|
+
+ (NSURL *)initialUrlFromProcessInfo
|
|
820
|
+
{
|
|
821
|
+
NSProcessInfo *processInfo = [NSProcessInfo processInfo];
|
|
822
|
+
NSArray *arguments = [processInfo arguments];
|
|
823
|
+
BOOL nextIsUrl = NO;
|
|
824
|
+
|
|
825
|
+
for (NSString *arg in arguments) {
|
|
826
|
+
if (nextIsUrl) {
|
|
827
|
+
NSURL *url = [NSURL URLWithString:arg];
|
|
828
|
+
if (url) {
|
|
829
|
+
return url;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
if ([arg isEqualToString:@"--initialUrl"]) {
|
|
833
|
+
nextIsUrl = YES;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
return nil;
|
|
837
|
+
}
|
|
838
|
+
|
|
811
839
|
@end
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-launcher",
|
|
3
3
|
"title": "Expo Development Launcher",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.18",
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"homepage": "https://docs.expo.dev",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"ajv": "8.11.0",
|
|
34
|
-
"expo-dev-menu": "6.0.
|
|
34
|
+
"expo-dev-menu": "6.0.13",
|
|
35
35
|
"expo-manifests": "~0.15.0",
|
|
36
36
|
"resolve-from": "^5.0.0"
|
|
37
37
|
},
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"graphql": "^16.0.1",
|
|
52
52
|
"graphql-request": "^3.6.1",
|
|
53
53
|
"react": "18.3.1",
|
|
54
|
-
"react-native": "0.76.
|
|
54
|
+
"react-native": "0.76.3",
|
|
55
55
|
"react-query": "^3.34.16",
|
|
56
56
|
"url": "^0.11.0"
|
|
57
57
|
},
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
],
|
|
67
67
|
"testTimeout": 15000
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "728158f99d680cf64fb06f08301d3806c18c6f63"
|
|
70
70
|
}
|