compile method
Compiles this target into an ordered step list.
A pure function of the target value + ctx — no tool invocations, no
I/O. The runner wraps the result in a Pipeline and validates the
artifact chain before executing anything.
Implementation
@override
List<BuildStep> compile(BuildContext ctx) => [
ResolveNewestApkStep(explicitApk: apk),
if (!noInstall)
InstallApkStep(
deviceId: deviceId,
adbPath: adbPath,
toolchain: toolchain,
),
LaunchAppStep(
deviceId: deviceId,
packageOverride: package,
activityOverride: activity,
adbPath: adbPath,
aapt2Path: aapt2Path,
toolchain: toolchain,
),
LogcatScanStep(
waitSeconds: waitSeconds,
treatMissingProcessAsFailure: !noInstall,
deviceId: deviceId,
adbPath: adbPath,
toolchain: toolchain,
),
];