LaunchAppStep class
Resolves package + launchable activity (typed target config first, then
aapt2 dump badging on the APK), clears the device log buffer, and
starts the activity.
Constructors
- LaunchAppStep({String? deviceId, String? packageOverride, String? activityOverride, String? adbPath, String? aapt2Path, ResolvedToolchain? toolchain})
Properties
- aapt2Path → String?
-
final
- activityOverride → String?
-
final
- adbPath → String?
-
Injectable tool paths (tests / explicit config); null → toolchain.
final
- deviceId → String?
-
Device serial — required on multi-device hosts; null = single device.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Unique step name, used in logs and YAML overrides (
pipeline.steps). Keep it stable: incremental-build caches and pipeline overrides refer to steps by name.no setteroverride - packageOverride → String?
-
Typed target config wins over badging (ADR-0015: targets are values).
final
-
provides
→ Set<
Artifact< Object> > -
Artifacts this step makes available to downstream steps. Ids must be
unique across the pipeline.
no setterinherited
-
requires
→ Set<
Artifact< Object> > -
Artifacts this step needs from upstream steps. Declared up front so the
whole chain is validated before any tool runs.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toolchain → ResolvedToolchain?
-
Null →
PipelineState.resolvedToolchain→ default (ADR-0013 T2).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
BuildContext ctx, PipelineState state) → Future< StepResult> -
Executes the step. Read upstream values from
state, write this step's outputs back into it, and return StepResult.success or StepResult.failure. Throw only for programming errors — expected tool/build failures are reported via the result.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited