midscene
midscene copied to clipboard
refactor(android-playground): refactor getAdbDevices to use getConnectedDevices for improved device retrieval
This pull request refactors the logic for retrieving connected Android devices in the packages/android-playground/src/bin.ts file. The main improvement is replacing manual ADB command parsing with the standardized getConnectedDevices utility from @midscene/android, resulting in cleaner and more maintainable code.
Device discovery improvements:
- Replaced manual ADB command execution and parsing in
getAdbDeviceswith thegetConnectedDevicesfunction from@midscene/android, ensuring more reliable and consistent device information retrieval. - Updated imports to include
getConnectedDevicesfrom@midscene/android, removing the need for direct ADB command usage.
Deploy Preview for midscene ready!
| Name | Link |
|---|---|
| Latest commit | 6d6f7b66ea4983acfcc7a8bdd12d8f5bbefe654e |
| Latest deploy log | https://app.netlify.com/projects/midscene/deploys/6929a9b9c8abf0000866a238 |
| Deploy Preview | https://deploy-preview-1518--midscene.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.