Revert "[flutter_tools] update libimobiledevice (#59512)" (#60551)

This reverts commit 32000db52e.
This commit is contained in:
Christopher Fujino
2020-06-29 13:44:38 -07:00
committed by GitHub
parent 32000db52e
commit 09cca73aee
9 changed files with 14 additions and 15 deletions

View File

@@ -510,7 +510,7 @@ class IOSDevice extends Device {
@override
Future<void> takeScreenshot(File outputFile) async {
await _iMobileDevice.takeScreenshot(outputFile, id);
await _iMobileDevice.takeScreenshot(outputFile);
}
@override
@@ -832,8 +832,8 @@ class IOSDevicePortForwarder extends DevicePortForwarder {
process = await _processUtils.start(
<String>[
_iproxyPath,
'$hostPort:$devicePort',
'--udid',
hostPort.toString(),
devicePort.toString(),
_id,
],
environment: Map<String, String>.fromEntries(

View File

@@ -66,13 +66,11 @@ class IMobileDevice {
}
/// Captures a screenshot to the specified outputFile.
Future<void> takeScreenshot(File outputFile, String deviceID) {
Future<void> takeScreenshot(File outputFile) {
return _processUtils.run(
<String>[
_idevicescreenshotPath,
outputFile.path,
'--udid',
deviceID,
],
throwOnError: true,
environment: Map<String, String>.fromEntries(