Skip to content

Commit

Permalink
Add android_emulator_system_image_package input to eas/maestro_test f…
Browse files Browse the repository at this point in the history
…unction (#476)
  • Loading branch information
szdziedzic authored Dec 6, 2024
1 parent e89ed61 commit 11b6f90
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion packages/build-tools/src/steps/functionGroups/maestroTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ export function createEasMaestroTestFunctionGroup(
id: 'app_path',
required: false,
}),
BuildStepInput.createProvider({
allowedValueTypeName: BuildStepInputValueTypeName.STRING,
id: 'android_emulator_system_image_package',
required: false,
}),
],
createBuildStepsFromFunctionGroupCall: (globalCtx, { inputs }) => {
const steps: BuildStep[] = [
Expand Down Expand Up @@ -68,7 +73,16 @@ export function createEasMaestroTestFunctionGroup(
);
} else if (buildToolsContext.job.platform === Platform.ANDROID) {
steps.push(
createStartAndroidEmulatorBuildFunction().createBuildStepFromFunctionCall(globalCtx)
createStartAndroidEmulatorBuildFunction().createBuildStepFromFunctionCall(
globalCtx,
inputs.android_emulator_system_image_package.value
? {
callInputs: {
system_image_package: inputs.android_emulator_system_image_package.value,
},
}
: undefined
)
);
const searchPath = inputs.app_path.value ?? 'android/app/build/outputs/**/*.apk';
steps.push(
Expand Down

0 comments on commit 11b6f90

Please sign in to comment.