Skip to content

refactor(usb-drive): move mock-platform selection to app composition roots#8744

Draft
eventualbuddha wants to merge 1 commit into
brian/usb-drive-refactor-12-dev-dock-simulated-platformfrom
brian/usb-drive-refactor-13-platform-injection
Draft

refactor(usb-drive): move mock-platform selection to app composition roots#8744
eventualbuddha wants to merge 1 commit into
brian/usb-drive-refactor-12-dev-dock-simulated-platformfrom
brian/usb-drive-refactor-13-platform-injection

Conversation

@eventualbuddha

Copy link
Copy Markdown
Contributor

<🤖>

detectUsbDrive/detectMultiUsbDrive no longer consult the USE_MOCK_USB_DRIVE flag — they are deterministic over the platform they are given. App backends decide explicitly via
getSimulatedUsbPlatform(), which returns the simulated platform when the flag is set and undefined (real hardware) otherwise.

</🤖>

Overview

(Part 13 of a series of PRs: previous / next)

TODO

Demo Video or Screenshot

TODO

Testing Plan

TODO

…roots

`detectUsbDrive`/`detectMultiUsbDrive` no longer consult the
USE_MOCK_USB_DRIVE flag — they are deterministic over the platform they
are given. App backends decide explicitly via
`getSimulatedUsbPlatform()`, which returns the simulated platform when
the flag is set and undefined (real hardware) otherwise.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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