[android] build, run and logcat

This commit is contained in:
2019-08-23 14:37:36 +03:00
parent 8205a4cb0c
commit c248744c70
3 changed files with 71 additions and 36 deletions

View File

@@ -96,7 +96,8 @@ class HaxeBuilder extends Builder {
'tools',
'platform-tools',
'build-tools;27.0.3',
'platforms;android-19',
//'platforms;android-19',
'platforms;android-26',
//'ndk-bundle',
'lldb;3.1',
'cmake;3.6.4111459',
@@ -353,11 +354,12 @@ class AndroidRunner extends Runner {
call() {
const target = this.targetPath;
const filename = path.resolve(target, this.config.meta.filename+'-debug.apk');
console.log(filename);
return gulp.src(filename)
return this.log(gulp.src(filename)
.pipe(this.android.apk())
.pipe(this.android.install())
.pipe(this.android.start());
.pipe(this.android.start())
.pipe(this.android.logcat())
);
}
}