refactor: split Android platform module into focused submodules

Merged
TH
8mo ago
+1606-1532

Summary

  • Splits src/platforms/android/index.ts (~1533 LOC) into 7 focused submodules + thin re-export layer
  • adb.ts (21 LOC) — shared helpers used across modules
  • app-lifecycle.ts (507 LOC) — app resolve/list/open/close/install/reinstall/appstate + bundletool
  • input-actions.ts (378 LOC) — press/swipe/longPress/type/fill/scroll/scrollIntoView
  • device-input-state.ts (184 LOC) — keyboard state/dismiss + clipboard read/write
  • settings.ts (314 LOC) — appearance/permission/fingerprint/wifi/airplane/location
  • notifications.ts (61 LOC) — push notification broadcast
  • snapshot.ts (98 LOC) — snapshot + screenshot + UI hierarchy dump
  • index.ts (43 LOC) — re-exports preserving all public exports

No behavior changes. All existing consumers import via index.ts and are unaffected.

app-lifecycle.ts slightly exceeds 500 LOC due to tightly coupled bundletool integration.

Closes #154

Validation

  • pnpm typecheck — pass
  • pnpm test:unit — all tests pass (0 failures)
  • pnpm test:smoke — all 7 tests pass

🤖 Generated with Claude Code