Skip to content

refactor(app): add phone domain use cases - #20

Open
Foxpace wants to merge 1 commit into
codex/sensorbox-refactor-06-sensorservice-runtimefrom
codex/sensorbox-refactor-07-phone-domain
Open

refactor(app): add phone domain use cases#20
Foxpace wants to merge 1 commit into
codex/sensorbox-refactor-06-sensorservice-runtimefrom
codex/sensorbox-refactor-07-phone-domain

Conversation

@Foxpace

@Foxpace Foxpace commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Adds a domain layer that separates phone UI behavior from Android services, sensors, storage, and wearable transport.

What was added

  • Measurement control, permission, request, and document-storage use cases.
  • Sensor discovery and SensorDescriptor mapping.
  • Wear-file reception and destination resolution.
  • Preference dependency injection and updated application/message-listener wiring.

How it works

The presentation layer sends user actions to use cases. Those use cases validate permissions and requests, query available sensors, start or stop the measurement service, write received wearable files, and expose domain-friendly results without leaking service or transport details into Compose screens.

Stack position

Layer 7 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)

@Foxpace Foxpace changed the title codex/sensorbox refactor 07 phone domain refactor(app): add phone domain use cases Aug 15, 2026
@Foxpace
Foxpace marked this pull request as ready for review August 15, 2026 21:50
Sign up for free to 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