File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,3 +36,6 @@ ehthumbs.db
3636
3737# Log files
3838* .log
39+
40+ # Local ADB device config
41+ .adb-device
Original file line number Diff line number Diff line change 1+ # CoffeeShotTimer build commands
2+ # Run `just --list` to see available recipes
3+
4+ export JAVA_HOME := " /usr/lib/jvm/java-21-openjdk"
5+
6+ # Default recipe - show available commands
7+ default :
8+ @ just --list
9+
10+ # --- Build & Test ---
11+
12+ # Run detekt static analysis
13+ detekt :
14+ ./ gradlew detekt
15+
16+ # Run Android lint (devDebug)
17+ lint :
18+ ./ gradlew lintDevDebug
19+
20+ # Run unit tests (devDebug)
21+ test :
22+ ./ gradlew testDevDebugUnitTest
23+
24+ # Build debug APK (devDebug)
25+ build :
26+ ./ gradlew assembleDevDebug
27+
28+ # Clean build artifacts
29+ clean :
30+ ./ gradlew clean
31+
32+ # Run all checks (detekt + lint + tests)
33+ check : detekt lint test
34+
35+ # --- Device ---
36+
37+ # Install debug APK on connected device
38+ install :
39+ ./ gradlew installDevDebug
40+
41+ # Pair with device (one-time, requires pairing code from phone)
42+ adb-pair ip port :
43+ adb pair {{ ip}} :{{ port}}
44+
45+ # Auto-discover and connect via mDNS
46+ adb-connect :
47+ #!/usr/bin/env bash
48+ echo " Scanning for devices..."
49+ DEVICE=$( adb mdns services 2> /dev/null | grep " _adb-tls-connect" | head -1)
50+ if [ -z " $DEVICE " ]; then
51+ echo " No devices found. Is Wireless Debugging enabled?"
52+ exit 1
53+ fi
54+ ADDR=$( echo " $DEVICE " | awk ' {print $NF}' )
55+ echo " Found: $ADDR "
56+ adb connect " $ADDR "
57+ adb devices
58+
59+ # Show connected devices
60+ adb-status :
61+ @ adb devices
62+
63+ # Restart ADB server
64+ adb-restart :
65+ adb kill-server
66+ adb start-server
67+ @ adb devices
You can’t perform that action at this time.
0 commit comments