Make AndroidDevice strict

Summary:
Relies heavily on types (not) defined in other modules,
so right now it's mostly sprinkling more `any`s in.

My type declaration is based on `dts-gen` output and some
manual fixes. This is the same level as the old flow-typed
definition we had.

Reviewed By: jknoxville

Differential Revision: D17282739

fbshipit-source-id: 0e5015d3b61044615a03c50fefade908041310a8
This commit is contained in:
Pascal Hartig
2019-09-10 10:31:44 -07:00
committed by Facebook Github Bot
parent c2e2915471
commit 4f6bae7cbf
2 changed files with 129 additions and 2 deletions

View File

@@ -24,8 +24,8 @@ export default class AndroidDevice extends BaseDevice {
super(serial, deviceType, title, 'Android');
this.adb = adb;
this.icon = 'icons/android.svg';
this.adb.openLogcat(this.serial).then(reader => {
reader.on('entry', entry => {
this.adb.openLogcat(this.serial).then((reader: any) => {
reader.on('entry', (entry: any) => {
let type: LogLevel = 'unknown';
if (entry.priority === Priority.VERBOSE) {
type = 'verbose';