simpod library
Classes
- AccessibilityCommand
- AppearanceCommand
- BezelCommand
- BootCommand
- ButtonCommand
- DescribeCommand
- DevicesCommand
- EmbeddedAssets
-
Resolves the helper binary and Flutter web build that are embedded inside a
release
dart compile exebinary. - GestureCommand
- HelperHandle
- LocationCommand
- LogsCommand
- OpenUrlCommand
- OrientationCommandBase
- PairCommand
- PermissionsCommand
- PortScanner
- RotateCommand
- RotateLeftCommand
- RotateRightCommand
- ScreenshotCommand
- ScreenshotResult
- ShutdownCommand
- SimctlResult
- SimpodClient
- SimpodCommand
- SimpodCommandRunner
- SimpodHelperManager
- SimpodHttpServer
- SimpodPaths
- SimpodSessionManager
- SimpodSettings
-
Persistent config at
$TMPDIR/simpod/settings.json. Bump schemaVersion and migrate in SimpodSettings.fromJson when the shape changes. - SimpodSettingsManager
- The settings file is created once and then reused, so a single token is shared by every process and survives restarts.
- SimulatorControl
- StatusBarCommand
- TapCommand
- TypeCommand
- UpdateCommand
Enums
- HelperSpawnMode
-
- attached — child process; stdio is drained and logged.
- detachedWithLogs — detached, but stdio pipes are held and forwarded to the session log. Only safe from a long-lived parent (the preview server): if the parent exits, nobody drains the pipes and the helper eventually blocks on a full stdout buffer.
- detached — fully detached, no stdio. For short-lived CLI commands (
simpod boot), which must exit as soon as the helper is up.
Constants
- defaultHelperPort → const int
- helperHost → const String
- packageVersion → const String
-
Keep in sync with
pubspec.yaml.
Functions
-
bootDevice(
String udid) → Future< void> -
findDevice(
List< DeviceInfo> devices, String query) → DeviceInfo? - Matches a simulator by exact udid or case-insensitive name.
-
generateRandomToken(
) → String -
getLocalNetworkIPAddress(
) → Future< String?> -
Prefers a private (RFC 1918) address on
en*— Ethernet/Wi-Fi on macOS — because VPN tunnels (utun*) surface first on some setups and peers on the local network can't reach them. -
isDeviceBooted(
String udid) → Future< bool> -
isPrivateIPv4(
String address) → bool -
isServerHealthy(
String host, int port) → Future< bool> -
Probes a preview server's
/api/healthendpoint. -
renderQrAscii(
String data, {int quietZone = 2}) → String -
Renders
dataas a scannable QR code for the terminal. -
scanIosDevices(
) → Future< List< DeviceInfo> > -
Lists the simulators
simctlknows about, skipping unavailable ones (broken runtimes can't be booted or driven).