Skip to content

Commit

Permalink
Bump Expo dependencies versions and adapt Expo debugging (#1676)
Browse files Browse the repository at this point in the history
* Bump Expo dependencies versions and adapt setOptions func
  • Loading branch information
RedMickey committed Sep 28, 2021
1 parent 663a61f commit ec23040
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
```
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
7 changes: 2 additions & 5 deletions src/extension/exponent/xdlInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
await (await getXDLPackage()).Project.setOptionsAsync(projectRoot, options);
export async function setOptions(projectRoot: string, options: XDLPackage.IOptions): Promise<void> {
await (await getXDLPackage()).ProjectSettings.setPackagerInfoAsync(projectRoot, options);
}

export async function startExponentServer(projectRoot: string): Promise<void> {
Expand Down
5 changes: 4 additions & 1 deletion src/typings/exponent/xdl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ declare module xdl {
stopReactNativeServerAsync(projectRoot: string): Promise<void>;
startTunnelsAsync(projectRoot: string): Promise<void>;
stopTunnelsAsync(projectRoot: string): Promise<void>;
setOptionsAsync(projectRoot: string, options?: IOptions): Promise<void>;
}

var ProjectSettings: {
setPackagerInfoAsync(projectRoot: string, json: Partial<IOptions>): Promise<IOptions>;
}

var UrlUtils: {
Expand Down

0 comments on commit ec23040

Please sign in to comment.