Files
gulp-haxetool/src/project/impl/runner/android.ts
T
shmyga 2605c1bbc8
test / test (push) Failing after 5m32s
refactor(preset): rework preset
2026-10-29 20:35:53 +03:00

32 lines
815 B
TypeScript

import gulp from "gulp";
import { type Config, Platform } from "../../../core/type";
import { Android } from "../../../impl/android";
import { Runner } from "../../core/runner";
export class AndroidRunner extends Runner {
protected android: Android;
constructor(config: Config, debug: boolean) {
super(config, Platform.ANDROID, debug);
this.android = new Android();
}
prepare() {
return this.android.prepare();
}
call() {
const target = this.targetPath;
return this.log(
gulp
.src(`${target}/${this.config.meta.filename}_${this.config.meta.version}.apk`)
.pipe(this.android.apk())
.pipe(this.android.install())
.pipe(this.android.start())
.pipe(this.android.logcat()),
);
}
}
Runner.register(Platform.ANDROID, AndroidRunner);