simutil_core 1.2.0 copy "simutil_core: ^1.2.0" to clipboard
simutil_core: ^1.2.0 copied to clipboard

Core models and process execution for SimUtil.

Changelog #

1.2.0 #

  • DeviceService.wipeData({deviceId}): erase a shut-down simulator / emulator's data. FakeDeviceService.wiped records the calls.

1.1.0 #

  • DeviceSession interface for live device screens: SessionStatus (SessionConnecting / SessionLive / SessionFailed), TouchPhase, DeviceButton (back, home, recents, lock, volume up / down), input repair and screen recording.
  • DeviceService.launchDevice takes headless to start without a window.
  • DeviceService.deleteSimulator deletes a shut-down simulator/emulator; FakeDeviceService records it in deleted.
  • CommandQueue and CommandPriority: IsolateRunner now schedules processes with bounded concurrency (maxConcurrent, default processor count clamped to 2..6), runs interactive work before normal and background, always keeps one slot free from background work, promotes background work waiting over 2 s, and shares one result between identical queued/running background commands.
  • CommandExec.run takes priority; FakeCommandCall records it.
  • DeviceService.watchDevices() signals device changes so callers reload instead of polling; FakeDeviceService.emitDeviceChange() drives it in tests.
  • mergeStreams merges change streams; reconnecting keeps a long-lived watcher alive with exponential backoff.
  • DeviceAutomation interface (launch an app fresh, optionally with clearState; type text; read the accessibility tree) with UiElement (label, id, value, role, normalized frame, opaque handle), DeviceAutomation.tapElement for native taps, and findElement (exact match first, then contains; index picks among several).
  • Device.android takes an optional platform (e.g. Android 15).

1.0.0 #

  • Initial release, extracted from the simutil app.
  • CommandExec() runs commands in-process; CommandExec.isolate(runner) runs them on an IsolateRunner background isolate.
  • CommandExec() kills the process when timeout elapses.
  • CommandExec() and IsolateRunner close the child's stdin, so commands that read stdin see EOF instead of hanging.
0
likes
140
points
448
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Core models and process execution for SimUtil.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on simutil_core