Skip to content

Commit

Permalink
Bump remote-adb to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nisargjhaveri committed Sep 2, 2024
1 parent 79daaf7 commit fbec389
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
"typescript": "^5.5.4"
},
"dependencies": {
"remote-adb": "^2.3.0"
"remote-adb": "^3.0.0"
}
}
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as vscode from 'vscode';
import { Server } from 'remote-adb/dist/server';
import { setLogger as setRemoteAdbLogger } from 'remote-adb/dist/common/logger';
import { Server } from 'remote-adb/server';
import { setLogger as setRemoteAdbLogger } from 'remote-adb/logger';

import { logger } from './logger';

Expand All @@ -9,7 +9,7 @@ let serverUri: vscode.Uri|undefined = undefined;

async function ensureServerListening() {
if (!server) {
server = new Server(0);
server = new Server({ port: 0 });
}
if (!server.isListening()) {
serverUri = vscode.Uri.parse(await server.start());
Expand Down
2 changes: 1 addition & 1 deletion src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
import { Logger } from 'remote-adb';
import type { Logger } from 'remote-adb/logger';

class OutputLogger implements Logger {
private channel = vscode.window.createOutputChannel("Remote Android - Server", { log: true });
Expand Down
6 changes: 3 additions & 3 deletions src/test/suite/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from 'path';
import * as Mocha from 'mocha';
import * as glob from 'glob';
import path from 'path';
import Mocha from 'mocha';
import glob from 'glob';

export function run(): Promise<void> {
// Create the mocha test
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"module": "commonjs",
"module": "NodeNext",
"target": "ES2020",
"lib": [
"ES2020"
Expand Down

0 comments on commit fbec389

Please sign in to comment.