mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-25 19:10:12 +00:00
Add support for ADB server environment variables (#96)
* support ADB env vars for configuring the server connection * update startADBServer to use common adb socket params * use adbSocket config value to set adb host and port * make sure env var values are trimmed * pretty-print launch args and env vars * use adb socket host for JDWP connections * allow JDWP port to be fixed * include the command detail in adb command failures * configure adb socket and jdwp port parameters for attach configs * bump version 1.3.0
This commit is contained in:
32
package.json
32
package.json
@@ -2,7 +2,7 @@
|
||||
"name": "android-dev-ext",
|
||||
"displayName": "Android",
|
||||
"description": "Android debugging support for VS Code",
|
||||
"version": "1.2.1",
|
||||
"version": "1.3.0",
|
||||
"publisher": "adelphes",
|
||||
"preview": true,
|
||||
"license": "MIT",
|
||||
@@ -238,8 +238,7 @@
|
||||
"launch": {
|
||||
"required": [
|
||||
"appSrcRoot",
|
||||
"apkFile",
|
||||
"adbPort"
|
||||
"apkFile"
|
||||
],
|
||||
"properties": {
|
||||
"amStartArgs": {
|
||||
@@ -265,12 +264,17 @@
|
||||
},
|
||||
"adbPort": {
|
||||
"type": "integer",
|
||||
"description": "Port number to connect to the local ADB (Android Debug Bridge) instance. Default: 5037",
|
||||
"description": "Port number to connect to the local ADB (Android Debug Bridge) instance. Default: 5037\nDeprecated: Configure the 'adbSocket' property instead.",
|
||||
"default": 5037
|
||||
},
|
||||
"adbSocket": {
|
||||
"type": "string",
|
||||
"description": "`host : port` configuration for connecting to the ADB (Android Debug Bridge) server instance. Default: \"localhost:5037\"",
|
||||
"default": "localhost:5037"
|
||||
},
|
||||
"autoStartADB": {
|
||||
"type": "boolean",
|
||||
"description": "Automatically launch 'adb start-server' if not already started. Default: true",
|
||||
"description": "Automatically attempt to launch 'adb start-server' if not already started. Default: true",
|
||||
"default": true
|
||||
},
|
||||
"callStackDisplaySize": {
|
||||
@@ -278,6 +282,11 @@
|
||||
"description": "Number of entries to display in call stack views (for locations outside of the project source). 0 shows the entire call stack. Default: 1",
|
||||
"default": 1
|
||||
},
|
||||
"jdwpPort": {
|
||||
"type": "integer",
|
||||
"description": "Manually specify the local port used for connecting to the on-device debugger client.\nThis can be useful if you are using port-forwarding to connect to a remote device.\nThe specified port must be available and different from the ADB socket port.\nSet to 0 for automatic (dynamic) assignment.\nDefault: 0",
|
||||
"default": 0
|
||||
},
|
||||
"launchActivity": {
|
||||
"type": "string",
|
||||
"description": "Manually specify the activity to run when the app is started.",
|
||||
@@ -325,7 +334,6 @@
|
||||
"attach": {
|
||||
"required": [
|
||||
"appSrcRoot",
|
||||
"adbPort",
|
||||
"processId"
|
||||
],
|
||||
"properties": {
|
||||
@@ -336,9 +344,19 @@
|
||||
},
|
||||
"adbPort": {
|
||||
"type": "integer",
|
||||
"description": "Port number to connect to the local ADB (Android Debug Bridge) instance. Default: 5037",
|
||||
"description": "Port number to connect to the local ADB (Android Debug Bridge) instance. Default: 5037\nDeprecated: Configure the 'adbSocket' property instead.",
|
||||
"default": 5037
|
||||
},
|
||||
"adbSocket": {
|
||||
"type": "string",
|
||||
"description": "`host : port` configuration for connecting to the ADB (Android Debug Bridge) server instance. Default: \"localhost:5037\"",
|
||||
"default": "localhost:5037"
|
||||
},
|
||||
"jdwpPort": {
|
||||
"type": "integer",
|
||||
"description": "Manually specify the local port used for connecting to the on-device debugger client.\nThis can be useful if you are using port-forwarding to connect to a remote device.\nThe specified port must be available and different from the ADB socket port.\nSet to 0 for automatic (dynamic) assignment.\nDefault: 0",
|
||||
"default": 0
|
||||
},
|
||||
"processId": {
|
||||
"type": "string",
|
||||
"description": "PID of process to attach to.\n\"${command:PickAndroidProcess}\" will display a list of debuggable PIDs to choose from during launch.",
|
||||
|
||||
Reference in New Issue
Block a user