-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Improved plugin commands location and fixes in commands registry.
- Improved Readme
- Loading branch information
1 parent
0d13edd
commit 7209b8b
Showing
6 changed files
with
96 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
import { IConsoleInterface } from "../console-interface/iconsole-interface" | ||
import adbCommands from "./adb-commands" | ||
import { IConsoleInterface } from '../console-interface/iconsole-interface' | ||
import adbCommands from './adb-commands' | ||
|
||
export class DeviceHelpers { | ||
static getDeviceManufacturer( | ||
ConsoleInstance: IConsoleInterface, | ||
ipAddress: string | ||
): string { | ||
return ConsoleInstance.execConsoleSync( | ||
adbCommands.GET_DEVICE_MODEL(ipAddress) | ||
).toString() | ||
} | ||
|
||
static getDeviceModel( | ||
ConsoleInstance: IConsoleInterface, | ||
deviceIP: string | ||
): string { | ||
return ConsoleInstance.execConsoleSync( | ||
adbCommands.GET_DEVICE_MODEL(deviceIP) | ||
).toString() | ||
} | ||
static getDeviceManufacturer( | ||
ConsoleInstance: IConsoleInterface, | ||
ipAddress: string | ||
): string { | ||
return ConsoleInstance.execConsoleSync( | ||
adbCommands.GET_DEVICE_MODEL(ipAddress) | ||
).toString() | ||
} | ||
|
||
|
||
static getDeviceModel( | ||
ConsoleInstance: IConsoleInterface, | ||
deviceIP: string | ||
): string { | ||
return ConsoleInstance.execConsoleSync( | ||
adbCommands.GET_DEVICE_MODEL(deviceIP) | ||
).toString() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { | ||
ResetDevicesPort, | ||
DisconnectAnyDevice, | ||
ConnectToDevice, | ||
ConnectToDeviceFromList, | ||
EnableFirebaseDebugView, | ||
DisableFirebaseDebugView, | ||
KillADBServer | ||
} from './extension/index' | ||
import * as vscode from 'vscode' | ||
|
||
export function commandsRegistry(vscodeContext: vscode.ExtensionContext) { | ||
return [ | ||
{ | ||
name: 'adbInterface.adbwificonnect', | ||
callback: () => { | ||
return ConnectToDevice(vscodeContext) | ||
} | ||
}, | ||
{ | ||
name: 'adbInterface.adbResetPorts', | ||
callback: () => { | ||
return ResetDevicesPort(vscodeContext) | ||
} | ||
}, | ||
{ | ||
name: 'adbInterface.disconnectEverthing', | ||
callback: () => { | ||
return DisconnectAnyDevice(vscodeContext) | ||
} | ||
}, | ||
{ | ||
name: 'adbInterface.connectToDeviceFromList', | ||
callback: () => { | ||
return ConnectToDeviceFromList(vscodeContext) | ||
} | ||
}, | ||
{ | ||
name: 'adbInterface.enableFirebaseDebug', | ||
callback: () => { | ||
return EnableFirebaseDebugView(vscodeContext) | ||
} | ||
}, | ||
{ | ||
name: 'adbInterface.disableFirebaseDebug', | ||
callback: () => { | ||
return DisableFirebaseDebugView(vscodeContext) | ||
} | ||
}, | ||
{ | ||
name: 'adbInterface.killserver', | ||
callback: () => { | ||
return KillADBServer(vscodeContext) | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters