From 96d2a37e5f81b39bdf38e3bcc3e8021ed85867d0 Mon Sep 17 00:00:00 2001 From: Matthew Wall Date: Fri, 6 Oct 2023 14:59:27 -0600 Subject: [PATCH] feat: add vscode android launch files --- .vscode/launch.json | 40 ++++++++++++++++++++++ .vscode/settings.json | 15 +++++++++ .vscode/tasks.json | 77 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 132 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000000..19882290cbe --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,40 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "android", + "request": "launch", + "name": "Launch App", + "preLaunchTask": "run build", + "appSrcRoot": "${workspaceRoot}/android/app/src/main", + "apkFile": "${workspaceRoot}/android/app/build/outputs/apk/debug/app-debug.apk", + "adbSocket": "localhost:5037", + "autoStartADB": true, + "staleBuild": "warn", + "targetDevice": "", + "manifestFile": "${workspaceRoot}/android/app/src/main/AndroidManifest.xml", + "pmInstallArgs": ["-r"], + "launchActivity": ".MainActivity", + "postLaunchPause": 1000, + "trace": false + }, + { + "type": "android", + "request": "launch", + "name": "Sync gradle files", + "preLaunchTask": "run sync" + }, + { + "type": "android", + "request": "launch", + "name": "Gradle clean", + "preLaunchTask": "run clean" + }, + { + "type": "android", + "request": "launch", + "name": "Gradle invalidate", + "preLaunchTask": "run invalidate" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000000..4f4c6f3528c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,15 @@ +{ + "i18n-ally.localesPaths": [ + "src/languages", + "ios/Pods/Flipper-Folly/folly/lang", + "ios/Pods/Flipper-Boost-iOSX/boost/locale", + "ios/Pods/RCT-Folly/folly/lang", + "ios/Pods/boost/boost/locale", + "ios/Pods/Flipper-Boost-iOSX/boost/predef/language", + "ios/Pods/boost/boost/predef/language", + "ios/Pods/Headers/Private/Flipper-Folly/folly/lang", + "ios/Pods/Headers/Private/RCT-Folly/folly/lang", + "ios/Pods/Headers/Public/Flipper-Folly/folly/lang", + "ios/Pods/Headers/Public/RCT-Folly/folly/lang" + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000000..7cf28bc4f0e --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,77 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "run build", + "type": "shell", + "command": "cd ${workspaceFolder}/android && ./gradlew assembleDebug", + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": false + }, + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "run clean", + "type": "shell", + "command": "cd ${workspaceFolder}/android && ./gradlew clean", + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": false + }, + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "run sync", + "type": "shell", + "command": "cd ${workspaceFolder}/android && ./gradlew --refresh-dependencies", + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": false + }, + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "run invalidate", + "type": "shell", + "command": " rm -rf ~/.gradle/caches && rm -rf ~/.gradle && cd ${workspaceFolder}/android && ./gradlew --stop", + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": false + }, + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + } + ] +}