Skip to content

Commit

Permalink
Wait for logcat to exit (use ^C as usual) instead of leaving the
Browse files Browse the repository at this point in the history
process linger in the background with the ability to emit more lines to
stdout
  • Loading branch information
MarijnS95 committed Sep 7, 2022
1 parent 204bd1f commit d779e85
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cargo-apk/src/apk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,14 @@ impl<'a> ApkBuilder<'a> {
apk.install(self.device_serial.as_deref())?;
let pid = apk.start(self.device_serial.as_deref())?;

let _handle = self
.ndk
self.ndk
.adb(self.device_serial.as_deref())?
.arg("logcat")
.arg("-v")
.arg("color")
.arg("--pid")
.arg(pid.to_string())
.spawn()?;
.status()?;

Ok(())
}
Expand Down

0 comments on commit d779e85

Please sign in to comment.