AppLauncher class
Boots devices and starts/stops Flutter apps so attach can recover from cold.
Constructors
- AppLauncher({String flutterPath = 'flutter'})
-
const
Properties
- flutterPath → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ensureBooted(
DevicePlatform platform, String deviceId) → Future< String?> - Boot the iOS sim (idempotent) and open Simulator; returns null on success else an error.
-
launchApp(
{required String projectDir, required String deviceId, Uri? attachTo, Duration timeout = const Duration(seconds: 180), Duration poll = const Duration(seconds: 2), Duration progressEvery = const Duration(seconds: 15), void onProgress(int elapsedSec, String? phase)?, Map< String, String> ? environment, Future<void> whileWaiting()?}) → Future<({Process process, Uri uri})> -
flutter runprojectDirondeviceId, or withattachToflutter attachto the app already serving that VM URI; returns the tool's VM URI + live process, throws LaunchError on failure/timeout. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shutdown(
DevicePlatform platform, String deviceId, {String adbPath = 'adb'}) → Future< String?> -
Shut down a device:
simctl shutdown(iOS) /adb emu kill(Android); null on success. -
terminateApp(
DevicePlatform platform, String deviceId, String appId, {String adbPath = 'adb'}) → Future< String?> -
Terminate an app:
simctl terminate(iOS) /am force-stop(Android); null on success. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- vmUriPattern → RegExp
-
final
Static Methods
-
failureLine(
String text) → String? - The log line that says why a build or install failed, so the error's first line is the real reason.