Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sterlinghirsh
Copy link
Contributor

Instead of having each example specify which device it wants to use, we can call getDevices(). This always adds a Simulator device, but if process.env.DEVICE is truthy, it will search for a real DAC. If process.env.DEVICE is the name of a DAC, it will use that without searching.

This pull also adds a method to Device so we can ask if the device is supported on the current system. Right now, this is only used to check the OS on windows-only DACs.

Note that I based this branch off add-shutdown-handler, so the changes from #70 are also included here.

This lets us load the package for unsupported devices without crashing.

There are probably more incompatibilities, but the windows DACs were the
ones causing a problem for me.
There's some other problems with this example but those changes will come later.
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