{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Build Debug APK",
      "type": "shell",
      "command": "./gradlew assembleDebug",
      "problemMatcher": [],
      "group": {
        "kind": "build",
        "isDefault": true
      }
    },
    {
      "label": "Clean Project",
      "type": "shell",
      "command": "./gradlew clean",
      "problemMatcher": []
    },
    {
      "label": "Build Release APK",
      "type": "shell",
      "command": "./gradlew assembleRelease",
      "problemMatcher": [],
      "group": "build"
    },
    {
      "label": "Install Debug APK",
      "type": "shell",
      "command": "./gradlew installDebug",
      "problemMatcher": []
    },
    {
      "label": "Start Emulator (Pixel 9 Pro)",
      "type": "shell",
      "command": "$ANDROID_HOME/emulator/emulator -avd Pixel_9_Pro_API_35 &",
      "problemMatcher": [],
      "isBackground": true
    },
    {
      "label": "Start Emulator (Pixel 6)",
      "type": "shell",
      "command": "$ANDROID_HOME/emulator/emulator -avd Pixel_6_API_Baklava &",
      "problemMatcher": [],
      "isBackground": true
    },
    {
      "label": "Start Emulator (Pixel 4)",
      "type": "shell",
      "command": "$ANDROID_HOME/emulator/emulator -avd Pixel_4_API_35 &",
      "problemMatcher": [],
      "isBackground": true
    },
    {
      "label": "Check Connected Devices",
      "type": "shell",
      "command": "adb devices",
      "problemMatcher": []
    },
    {
      "label": "Build & Install on Device",
      "type": "shell",
      "command": "./gradlew assembleDebug && ./gradlew installDebug",
      "problemMatcher": []
    },
    {
      "label": "🔥 Quick Dev - Fast Rebuild",
      "type": "shell",
      "command": "./dev.sh",
      "problemMatcher": [],
      "group": {
        "kind": "build",
        "isDefault": false
      }
    },
    {
      "label": "👀 Watch Mode - Auto Rebuild",
      "type": "shell",
      "command": "./watch-dev.sh",
      "problemMatcher": [],
      "isBackground": true
    },
    {
      "label": "Launch App on Device",
      "type": "shell",
      "command": "adb shell am start -n com.rosetta.messenger/.MainActivity",
      "problemMatcher": []
    },
    {
      "label": "View App Logs",
      "type": "shell",
      "command": "adb logcat | grep -E 'rosetta|MainActivity'",
      "problemMatcher": [],
      "isBackground": true
    },
    {
      "label": "Uninstall App",
      "type": "shell",
      "command": "adb uninstall com.rosetta.messenger",
      "problemMatcher": []
    }
  ]
}
