Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

fix(xdl): try to stop adb when shutting down #1876

Merged
merged 1 commit into from
Apr 14, 2020

Conversation

byCedric
Copy link
Member

@byCedric byCedric commented Apr 14, 2020

Fixes #283, #175

This PR requires a fix for the graceful shutdown on Windows, see #1749.

What did I do

  • Add failure-permitted Android.maybeStopAdbDaemonAsync in the XDL
  • Add Android.maybeStopAdbDaemonAsync in Project._stopInternalAsync

Why did I do
If you install the CLI locally you have the shipped ADB binaries in your project's node_modules. On Windows keeping the daemon running results in a "blocking" node modules folder, you can't remove the file while the process is running.

How does this do for others
The impact should be minimal. Even if the developer is using a custom installed ADB, the daemon is restarted automagically by ADB when executing commands 😄

@byCedric
Copy link
Member Author

I think either prettier or eslint is responsible for the parentheses changes 😅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants