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 CHANGED
@@ -24,7 +24,7 @@ module.exports = {
24
24
  simulator: {
25
25
  type: 'ios.simulator',
26
26
  device: {
27
- type: 'iPhone 12',
27
+ type: 'iPhone 13',
28
28
  },
29
29
  },
30
30
  },
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._
@@ -38,7 +38,7 @@ android {
38
38
  minSdkVersion safeExtGet('minSdkVersion', 21)
39
39
  targetSdkVersion safeExtGet("targetSdkVersion", 31)
40
40
  versionCode 1
41
- versionName "1.3.1"
41
+ versionName "2.0.0"
42
42
 
43
43
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
44
44
  }
@@ -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": "1.3.1",
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
- "@expo/config-plugins": "~5.0.0",
36
- "expo-dev-launcher": "1.3.1",
37
- "expo-dev-menu": "1.3.1",
38
- "expo-dev-menu-interface": "0.7.2",
39
- "expo-manifests": "~0.3.0",
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": "^2.0.0",
44
- "expo-test-runner": "0.0.10"
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": "6223e996aea1009ef046388917c5069d75ccd2b8"
51
+ "gitHead": "24bcb29e3ad33f8f576f60900ab1b1864dd33abf"
53
52
  }
@@ -1,2 +1,2 @@
1
- import { ExpoConfig } from '@expo/config-types';
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 '@expo/config-types';
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) && (intentFilter === null || intentFilter === void 0 ? void 0 : intentFilter.data)) {
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
- var _a;
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
- var _a;
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
- var _a;
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 '@expo/config-types';
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,4 +1,4 @@
1
- import { ExpoConfig } from '@expo/config-types';
1
+ import { ExpoConfig } from 'expo/config';
2
2
 
3
3
  /*
4
4
  * Converts the slug from app configuration to a string that's a valid URI scheme.
@@ -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 '@expo/config-types';
11
+ import { ExpoConfig } from 'expo/config';
12
12
 
13
13
  import getDefaultScheme from './getDefaultScheme';
14
14
 
@@ -1,5 +1,5 @@
1
1
  import { IOSConfig, InfoPlist, withInfoPlist, ConfigPlugin } from '@expo/config-plugins';
2
- import { ExpoConfig } from '@expo/config-types';
2
+ import { ExpoConfig } from 'expo/config';
3
3
 
4
4
  import getDefaultScheme from './getDefaultScheme';
5
5