Refactor BaseDevice constructor

Summary: OS must always be defined.

Reviewed By: jknoxville

Differential Revision: D17204398

fbshipit-source-id: 0d84111c382af623843a41360bcb472394daf3f1
This commit is contained in:
Pascal Hartig
2019-09-09 07:03:00 -07:00
committed by Facebook Github Bot
parent dbab2d1d6d
commit 4d7e776672
7 changed files with 8 additions and 12 deletions

View File

@@ -21,9 +21,8 @@ export default class AndroidDevice extends BaseDevice {
title: string,
adb: ADBClient,
) {
super(serial, deviceType, title);
super(serial, deviceType, title, 'Android');
this.adb = adb;
this.os = 'Android';
this.icon = 'icons/android.svg';
this.adb.openLogcat(this.serial).then(reader => {
reader.on('entry', entry => {