[android] build, run and logcat
This commit is contained in:
@@ -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())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user