forked from firka/flutter
Try golden-testing on a Mokey (bringup: true), retry on an emulator (#163029)
Towards https://github.com/flutter/flutter/issues/162362 (see if retries help VD on an emulator). Towards https://github.com/flutter/flutter/issues/163025 (see if we can golden-test on a device). May the odds be in our favor.
This commit is contained in:
@@ -49,6 +49,14 @@ class NativeDriverSupportPlugin :
|
||||
val versionMap = mapOf("version" to Build.VERSION.SDK_INT)
|
||||
result.success(versionMap)
|
||||
}
|
||||
"is_emulator" -> {
|
||||
val isEmulator =
|
||||
when {
|
||||
Build.MODEL.contains("gphone") -> true
|
||||
else -> false
|
||||
}
|
||||
result.success(mapOf("emulator" to isEmulator))
|
||||
}
|
||||
"ping" -> {
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user