From d4417e2b78c842cb2c464de825dd18078c70211e Mon Sep 17 00:00:00 2001 From: RedMickey Date: Tue, 28 Sep 2021 09:21:13 +0300 Subject: [PATCH 1/2] Bump Expo dependencies versions and adapt setOptions func --- package.json | 6 +++--- src/extension/exponent/xdlInterface.ts | 7 ++----- src/typings/exponent/xdl.d.ts | 5 ++++- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 35af25ca9..dcdf17d53 100644 --- a/package.json +++ b/package.json @@ -788,9 +788,9 @@ "type": "string" }, "default": { - "xdl": "59.1.0", - "@expo/metro-config": "0.1.84", - "@expo/ngrok": "4.1.0" + "xdl": "59.2.0", + "@expo/metro-config": "0.2.0", + "@expo/ngrok": "^4.1.0" }, "scope": "resource" }, diff --git a/src/extension/exponent/xdlInterface.ts b/src/extension/exponent/xdlInterface.ts index 175779fe6..deecafc63 100644 --- a/src/extension/exponent/xdlInterface.ts +++ b/src/extension/exponent/xdlInterface.ts @@ -94,11 +94,8 @@ export async function publish( return (await getXDLPackage()).Project.publishAsync(projectRoot, options); } -export async function setOptions( - projectRoot: string, - options?: XDLPackage.IOptions, -): Promise { - await (await getXDLPackage()).Project.setOptionsAsync(projectRoot, options); +export async function setOptions(projectRoot: string, options: XDLPackage.IOptions): Promise { + await (await getXDLPackage()).ProjectSettings.setPackagerInfoAsync(projectRoot, options); } export async function startExponentServer(projectRoot: string): Promise { diff --git a/src/typings/exponent/xdl.d.ts b/src/typings/exponent/xdl.d.ts index cb72cac6f..c2d9a17ce 100644 --- a/src/typings/exponent/xdl.d.ts +++ b/src/typings/exponent/xdl.d.ts @@ -89,7 +89,10 @@ declare module xdl { stopReactNativeServerAsync(projectRoot: string): Promise; startTunnelsAsync(projectRoot: string): Promise; stopTunnelsAsync(projectRoot: string): Promise; - setOptionsAsync(projectRoot: string, options?: IOptions): Promise; + } + + var ProjectSettings: { + setPackagerInfoAsync(projectRoot: string, json: Partial): Promise; } var UrlUtils: { From 49b9ba5ccb31dedb97af6852cb8c8d024bd0ee95 Mon Sep 17 00:00:00 2001 From: RedMickey Date: Tue, 28 Sep 2021 09:48:22 +0300 Subject: [PATCH 2/2] Minor fix --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2fabcabb7..e1fc5e040 100644 --- a/README.md +++ b/README.md @@ -740,9 +740,9 @@ To debug Expo applications the extension requires additional dependencies, such ```json { "react-native.expo.dependencies": { - "xdl": "59.1.0", - "@expo/metro-config": "0.1.72", - "@expo/ngrok": "4.1.0" + "xdl": "59.2.0", + "@expo/metro-config": "0.2.0", + "@expo/ngrok": "^4.1.0" } } ```