From 75303bcf6147c62752c264cdfe87d77929ba474d Mon Sep 17 00:00:00 2001 From: zhl Date: Mon, 15 May 2023 14:06:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9Bdebug?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E7=9A=84task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/tasks.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 9ddcd4f..372a732 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -66,6 +66,32 @@ "presentation": { "reveal": "always" } + }, + { + "label": "RunDebugApp", + "type": "shell", + "command": "adb shell am start com.cege.games.release/.MainActivity", + "windows": { + "command": "adb shell am start com.cege.games.release/.MainActivity " + }, + "group": "test", + "presentation": { + "reveal": "always" + }, + }, + { + "label": "ShowDebugLogcat", + "type": "shell", + "command": "adb logcat --pid=`adb shell ps | grep com.cege.games.release | awk '{print $2}'`", + "group": "test", + "presentation": { + "reveal": "always" + }, + }, + { + "label": "Build&Run", + "dependsOrder": "sequence", + "dependsOn": ["BuildDebugApp", "InstallDebugApp", "RunDebugApp", "ShowDebugLogcat"] } ] } \ No newline at end of file