Skip to content

Commit

Permalink
feat: add vscode android launch files
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Oct 6, 2023
1 parent ba397cd commit 96d2a37
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
15 changes: 15 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
77 changes: 77 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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
}
}
]
}

0 comments on commit 96d2a37

Please sign in to comment.