mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-09-04 03:19:33 +00:00
Add support for pinning specific emulator build.
This commit is contained in:
@@ -28,3 +28,9 @@ export function checkDisableAnimations(disableAnimations: string): void {
|
||||
throw new Error(`Input for input.disable-animations should be either 'true' or 'false'.`);
|
||||
}
|
||||
}
|
||||
|
||||
export function checkEmulatorBuild(emulatorBuild: string): void {
|
||||
if (isNaN(Number(emulatorBuild)) || !Number.isInteger(Number(emulatorBuild))) {
|
||||
throw new Error(`Unexpected emulator build: '${emulatorBuild}'.`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user