expo-dev-client 1.3.1 → 2.0.0
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/.detoxrc.js +1 -1
- package/CHANGELOG.md +7 -0
- package/android/build.gradle +1 -1
- package/e2e/DevLauncher.e2e.ts +2 -2
- package/package.json +9 -10
- package/plugin/build/getDefaultScheme.d.ts +1 -1
- package/plugin/build/withGeneratedAndroidScheme.d.ts +1 -1
- package/plugin/build/withGeneratedAndroidScheme.js +4 -7
- package/plugin/build/withGeneratedIosScheme.d.ts +1 -1
- package/plugin/src/getDefaultScheme.ts +1 -1
- package/plugin/src/withDevClient.ts +1 -1
- package/plugin/src/withGeneratedAndroidScheme.ts +1 -1
- package/plugin/src/withGeneratedIosScheme.ts +1 -1
package/.detoxrc.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 2.0.0 — 2022-10-27
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- Drop `@expo/config-plugins` dependency in favor of peer dependency on `expo`. ([#18595](https://github.com/expo/expo/pull/18595) by [@EvanBacon](https://github.com/EvanBacon))
|
|
18
|
+
- Get detox tests running locally. ([#19254](https://github.com/expo/expo/pull/19254) by [@esamelson](https://github.com/esamelson))
|
|
19
|
+
|
|
13
20
|
## 1.3.1 — 2022-10-11
|
|
14
21
|
|
|
15
22
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
package/e2e/DevLauncher.e2e.ts
CHANGED
|
@@ -9,7 +9,7 @@ const sleep = (duration: number) =>
|
|
|
9
9
|
|
|
10
10
|
async function pressElementByString(buttonString: string) {
|
|
11
11
|
const button = element(by.text(buttonString));
|
|
12
|
-
expect(button).toBeVisible();
|
|
12
|
+
await expect(button).toBeVisible();
|
|
13
13
|
await tapButton(button);
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -114,7 +114,7 @@ describe('DevLauncher', () => {
|
|
|
114
114
|
const loadButton = element(by.id('DevLauncherLoadAppButton'));
|
|
115
115
|
|
|
116
116
|
await expect(urlToggle).toBeVisible();
|
|
117
|
-
urlToggle.tap();
|
|
117
|
+
await urlToggle.tap();
|
|
118
118
|
|
|
119
119
|
await expect(urlInput).toBeVisible();
|
|
120
120
|
await expect(loadButton).toBeVisible();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Expo Development Client",
|
|
5
5
|
"main": "build/DevClient.js",
|
|
6
6
|
"types": "build/DevClient.d.ts",
|
|
@@ -32,16 +32,15 @@
|
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"homepage": "https://docs.expo.dev/clients/introduction/",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"
|
|
36
|
-
"expo-dev-
|
|
37
|
-
"expo-dev-menu": "1.
|
|
38
|
-
"expo-
|
|
39
|
-
"expo-
|
|
40
|
-
"expo-updates-interface": "~0.7.0"
|
|
35
|
+
"expo-dev-launcher": "2.0.0",
|
|
36
|
+
"expo-dev-menu": "2.0.0",
|
|
37
|
+
"expo-dev-menu-interface": "1.0.0",
|
|
38
|
+
"expo-manifests": "~0.4.0",
|
|
39
|
+
"expo-updates-interface": "~0.8.0"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
|
-
"expo-module-scripts": "^
|
|
44
|
-
"expo-test-runner": "0.0.
|
|
42
|
+
"expo-module-scripts": "^3.0.0",
|
|
43
|
+
"expo-test-runner": "0.0.11"
|
|
45
44
|
},
|
|
46
45
|
"peerDependencies": {
|
|
47
46
|
"expo": "*"
|
|
@@ -49,5 +48,5 @@
|
|
|
49
48
|
"jest": {
|
|
50
49
|
"preset": "expo-module-scripts"
|
|
51
50
|
},
|
|
52
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "24bcb29e3ad33f8f576f60900ab1b1864dd33abf"
|
|
53
52
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ExpoConfig } from '
|
|
1
|
+
import { ExpoConfig } from 'expo/config';
|
|
2
2
|
export default function getDefaultScheme(config: Pick<ExpoConfig, 'slug'>): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AndroidConfig, AndroidManifest, ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
-
import { ExpoConfig } from '
|
|
2
|
+
import { ExpoConfig } from 'expo/config';
|
|
3
3
|
export declare const withGeneratedAndroidScheme: ConfigPlugin;
|
|
4
4
|
export declare function setGeneratedAndroidScheme(config: Pick<ExpoConfig, 'scheme' | 'slug'>, androidManifest: AndroidManifest): AndroidManifest;
|
|
5
5
|
/**
|
|
@@ -40,7 +40,7 @@ function removeExpoSchemaFromVerifiedIntentFilters(config, androidManifest) {
|
|
|
40
40
|
for (const activity of application.activity || []) {
|
|
41
41
|
if (activityHasSingleTaskLaunchMode(activity)) {
|
|
42
42
|
for (const intentFilter of activity['intent-filter'] || []) {
|
|
43
|
-
if (intentFilterHasAutoVerification(intentFilter) &&
|
|
43
|
+
if (intentFilterHasAutoVerification(intentFilter) && intentFilter?.data) {
|
|
44
44
|
intentFilter.data = intentFilterRemoveSchemeFromData(intentFilter, (scheme) => scheme === defaultScheme);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -57,20 +57,17 @@ exports.removeExpoSchemaFromVerifiedIntentFilters = removeExpoSchemaFromVerified
|
|
|
57
57
|
* @see https://github.com/expo/expo-cli/blob/f1624c75b52cc1c4f99354ec4021494e0eff74aa/packages/config-plugins/src/android/Scheme.ts#L166
|
|
58
58
|
*/
|
|
59
59
|
function activityHasSingleTaskLaunchMode(activity) {
|
|
60
|
-
|
|
61
|
-
return ((_a = activity === null || activity === void 0 ? void 0 : activity.$) === null || _a === void 0 ? void 0 : _a['android:launchMode']) === 'singleTask';
|
|
60
|
+
return activity?.$?.['android:launchMode'] === 'singleTask';
|
|
62
61
|
}
|
|
63
62
|
/**
|
|
64
63
|
* Determine if the intent filter has `autoVerify=true`.
|
|
65
64
|
*/
|
|
66
65
|
function intentFilterHasAutoVerification(intentFilter) {
|
|
67
|
-
|
|
68
|
-
return ((_a = intentFilter === null || intentFilter === void 0 ? void 0 : intentFilter.$) === null || _a === void 0 ? void 0 : _a['android:autoVerify']) === 'true';
|
|
66
|
+
return intentFilter?.$?.['android:autoVerify'] === 'true';
|
|
69
67
|
}
|
|
70
68
|
/**
|
|
71
69
|
* Remove schemes from the intent filter that matches the function.
|
|
72
70
|
*/
|
|
73
71
|
function intentFilterRemoveSchemeFromData(intentFilter, schemeMatcher) {
|
|
74
|
-
|
|
75
|
-
return (_a = intentFilter === null || intentFilter === void 0 ? void 0 : intentFilter.data) === null || _a === void 0 ? void 0 : _a.filter((entry) => !schemeMatcher((entry === null || entry === void 0 ? void 0 : entry.$['android:scheme']) || ''));
|
|
72
|
+
return intentFilter?.data?.filter((entry) => !schemeMatcher(entry?.$['android:scheme'] || ''));
|
|
76
73
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IOSConfig, InfoPlist, ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
-
import { ExpoConfig } from '
|
|
2
|
+
import { ExpoConfig } from 'expo/config';
|
|
3
3
|
export declare const withGeneratedIosScheme: ConfigPlugin;
|
|
4
4
|
export declare function setGeneratedIosScheme(config: Pick<ExpoConfig, 'scheme' | 'slug'>, infoPlist: InfoPlist): IOSConfig.InfoPlist;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRunOncePlugin } from '@expo/config-plugins';
|
|
2
|
-
import { ExpoConfig } from '@expo/config-types';
|
|
3
2
|
// @ts-expect-error missing types
|
|
4
3
|
import withDevLauncher from 'expo-dev-launcher/app.plugin';
|
|
5
4
|
// @ts-expect-error missing types
|
|
6
5
|
import withDevMenu from 'expo-dev-menu/app.plugin';
|
|
6
|
+
import { ExpoConfig } from 'expo/config';
|
|
7
7
|
|
|
8
8
|
import { withGeneratedAndroidScheme } from './withGeneratedAndroidScheme';
|
|
9
9
|
import { withGeneratedIosScheme } from './withGeneratedIosScheme';
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ManifestActivity,
|
|
9
9
|
ManifestIntentFilter,
|
|
10
10
|
} from '@expo/config-plugins/build/android/Manifest';
|
|
11
|
-
import { ExpoConfig } from '
|
|
11
|
+
import { ExpoConfig } from 'expo/config';
|
|
12
12
|
|
|
13
13
|
import getDefaultScheme from './getDefaultScheme';
|
|
14
14
|
|