Skip to content

refactor(wearlib): add typed connectivity and protocol APIs - #16

Closed
Foxpace wants to merge 1 commit into
codex/sensorbox-refactor-02-build-toolingfrom
codex/sensorbox-refactor-03-wearlib-api
Closed

refactor(wearlib): add typed connectivity and protocol APIs#16
Foxpace wants to merge 1 commit into
codex/sensorbox-refactor-02-build-toolingfrom
codex/sensorbox-refactor-03-wearlib-api

Conversation

@Foxpace

@FoxpaceFoxpace commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Adds typed, testable APIs for communication between the phone and Wear OS applications.

What was added

  • Connection repository, connection state, use cases, node selection, and Hilt bindings.
  • File-transfer client, metadata model, path codec, and Google Play Services implementation.
  • Typed wearable commands, command codec, and sensor catalog storage.
  • Codec and node-selection tests plus reusable fake fixtures.

How it works

Application code talks to small repository and client interfaces. Google Play Services implementations discover the correct node and transport messages or files, while codecs translate typed commands and safe file paths to their wire representation. Fakes allow the same flows to run in unit and emulator tests.

Stack position

Layer 3 of 31 in the SensorBox refactor stack. Review this PR against its configured base to see only this layer.

Validation

  • Full stack: ./gradlew test — BUILD SUCCESSFUL (160 tasks)

@FoxpaceFoxpace changed the title codex/sensorbox refactor 03 wearlib apirefactor(wearlib): add typed connectivity and protocol APIsAug 15, 2026
@Foxpace
Foxpace marked this pull request as ready for review August 15, 2026 21:50
@FoxpaceChatGPT Codex Connector

Copy link
Copy Markdown
OwnerAuthor

Superseded by #46, which targets master and shows the final current tree. Closing this stacked layer so review stays on the consolidated diff; this PR remains available as history.

@FoxpaceFoxpace closed this Aug 19, 2026
@FoxpaceChatGPT Codex Connector

Copy link
Copy Markdown
OwnerAuthor

Stack restored at the author's request. This PR is again part of the original 31-layer refactor chain. The architecture work continues as stacked PRs #47 through #54; consolidated PR #46 is superseded.

@FoxpaceFoxpace reopened this Aug 19, 2026
@FoxpaceFoxpace closed this Aug 23, 2026
@Foxpace
Foxpace deleted the codex/sensorbox-refactor-03-wearlib-api branch August 23, 2026 12:58
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@Foxpace