Commit Graph

8 Commits

Author SHA1 Message Date
747c4abb7f fix(errors): implement filterErr with common adb stderr patterns
- Implement filterErr to detect device-not-found, offline, unauthorized,
  connection-refused, and multiple-device errors from stderr output
- Add ErrDeviceNotFound, ErrDeviceOffline, ErrDeviceUnauthorized,
  ErrConnectionRefused, ErrMoreThanOneDevice sentinel errors
- Remove log.Printf in CaptureSequence (was marked TODO for removal)
- Fix ConnString to use local variable instead of mutating value receiver
- Update go directive to 1.26.2
- Update README: check implemented features, fix intro typo, add
  root/keyevent/getevent to supported functions list
- Expand filterErr tests for all new error patterns
2026-04-08 10:38:56 +00:00
9ed4d3ef4f fix: replace panic with error return in execute(), fix Pull/Push/Reboot/Root targeting
- execute() no longer panics when adb is not found; returns ErrNotInstalled
- Use sync.Once for lazy adb path lookup instead of init()
- Fix Pull() checking src (device path) instead of dest (local path)
- Add ErrDestExists error for Pull destination conflicts
- Add -s serial flag to Push, Pull, Reboot, Root for multi-device support
- Root() now parses stdout to determine actual success
- Fix Shell() redundant variable redeclaration
- Fix 'inconsostency' typo in KillServer doc
- Add doc comments to all error variables
- Update Go 1.26.0 -> 1.26.1
- Add tests: ConnString, ShortenSleep, GetLength, JSON roundtrip,
  SequenceImporter.ToInput, insertSleeps, parseDevices edge cases,
  parseScreenResolution edge cases, filterErr
2026-03-14 06:33:10 +00:00
810a431a8e add USB conn support explicitly 2023-01-13 16:18:38 -08:00
cab458ce53 Add get screen resolution code 2022-08-02 21:29:10 -07:00
ca83d818fe Adding code from twitch stream https://www.twitch.tv/videos/1548041732 2022-07-31 02:50:14 -07:00
d17e55a04f Add captureEvents func + new error types + methods 2022-07-27 02:13:35 -07:00
a0a4684c95 merge 2022-07-19 17:50:10 -07:00
674b639850 in progress on capture implementation 2022-07-17 23:31:58 -07:00