mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-24 18:41:05 +00:00
145 lines
5.9 KiB
JSON
145 lines
5.9 KiB
JSON
{
|
|
"name": "android-dev-ext",
|
|
"displayName": "Android",
|
|
"description": "Android debugging support for VS Code",
|
|
"version": "0.4.1",
|
|
"publisher": "adelphes",
|
|
"preview": true,
|
|
"license": "MIT",
|
|
"engines": {
|
|
"vscode": "^1.8.0"
|
|
},
|
|
"categories": [
|
|
"Debuggers"
|
|
],
|
|
"icon": "images/ade.png",
|
|
"galleryBanner": {
|
|
"color": "#5c2d91",
|
|
"theme": "dark"
|
|
},
|
|
"activationEvents": [
|
|
"onCommand:android-dev-ext.view_logcat"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/adelphes/android-dev-ext"
|
|
},
|
|
"main": "./extension",
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "android-dev-ext.view_logcat",
|
|
"title": "Android: View Logcat"
|
|
}
|
|
],
|
|
"breakpoints": [
|
|
{
|
|
"language": "java"
|
|
}
|
|
],
|
|
"debuggers": [
|
|
{
|
|
"type": "android",
|
|
"label": "Android Debug",
|
|
"program": "./src/debugMain.js",
|
|
"runtime": "node",
|
|
"configurationAttributes": {
|
|
"launch": {
|
|
"required": [
|
|
"appSrcRoot",
|
|
"apkFile",
|
|
"adbPort"
|
|
],
|
|
"properties": {
|
|
"appSrcRoot": {
|
|
"type": "string",
|
|
"description": "Location of the App source files. This value must point to the root of your App source tree (containing AndroidManifest.xml)",
|
|
"default": "${workspaceRoot}/app/src/main"
|
|
},
|
|
"apkFile": {
|
|
"type": "string",
|
|
"description": "Fully qualified path to the built APK (Android Application Package)",
|
|
"default": "${workspaceRoot}/app/build/outputs/apk/app-debug.apk"
|
|
},
|
|
"adbPort": {
|
|
"type": "integer",
|
|
"description": "Port number to connect to the local ADB (Android Debug Bridge) instance. Default: 5037",
|
|
"default": 5037
|
|
},
|
|
"autoStartADB": {
|
|
"type": "boolean",
|
|
"description": "Automatically launch 'adb start-server' if not already started. Default: true",
|
|
"default": true
|
|
},
|
|
"callStackDisplaySize": {
|
|
"type": "integer",
|
|
"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
|
|
},
|
|
"logcatPort": {
|
|
"type": "integer",
|
|
"description": "Port number to use for the internal logcat websocket link. Changes to this value only apply when the extension is restarted. Default: 7038",
|
|
"default": 7038
|
|
},
|
|
"staleBuild": {
|
|
"type": "string",
|
|
"description": "Launch behaviour if source files have been saved after the APK was built. One of: [\"ignore\" \"warn\" \"stop\"]. Default: \"warn\"",
|
|
"default": "warn"
|
|
},
|
|
"targetDevice": {
|
|
"type": "string",
|
|
"description": "Target Device ID (as indicated by 'adb devices'). Use this to specify which device is used for deployment when multiple devices are connected.",
|
|
"default": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"initialConfigurations": [
|
|
{
|
|
"type": "android",
|
|
"name": "Android Debug",
|
|
"request": "launch",
|
|
"appSrcRoot": "${workspaceRoot}/app/src/main",
|
|
"apkFile": "${workspaceRoot}/app/build/outputs/apk/app-debug.apk",
|
|
"adbPort": 5037
|
|
}
|
|
],
|
|
"configurationSnippets": [
|
|
{
|
|
"label": "Android: Launch Configuration",
|
|
"description": "A new configuration for launching an Android app debugging session",
|
|
"body": {
|
|
"type": "android",
|
|
"request": "launch",
|
|
"name": "${2:Launch App}",
|
|
"appSrcRoot": "^\"\\${workspaceRoot}/app/src/main\"",
|
|
"apkFile": "^\"\\${workspaceRoot}/app/build/outputs/apk/app-debug.apk\"",
|
|
"adbPort": 5037
|
|
}
|
|
}
|
|
],
|
|
"variables": {}
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"postinstall": "node ./node_modules/vscode/bin/install",
|
|
"test": "node ./node_modules/vscode/bin/test"
|
|
},
|
|
"dependencies": {
|
|
"vscode-debugprotocol": "^1.15.0",
|
|
"vscode-debugadapter": "^1.15.0",
|
|
"long": "^3.2.0",
|
|
"ws": "^1.1.1",
|
|
"xmldom": "^0.1.27",
|
|
"xpath": "^0.0.23"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^2.0.3",
|
|
"vscode": "^1.0.0",
|
|
"mocha": "^2.3.3",
|
|
"eslint": "^3.6.0",
|
|
"@types/node": "^6.0.40",
|
|
"@types/mocha": "^2.2.32"
|
|
}
|
|
} |