Skip to content

Commit 09cca73

Browse files
Revert "[flutter_tools] update libimobiledevice (flutter#59512)" (flutter#60551)
This reverts commit 32000db.
1 parent 32000db commit 09cca73

File tree

9 files changed

+14
-15
lines changed

9 files changed

+14
-15
lines changed

bin/internal/ideviceinstaller.version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
73b9c81e02f83060aa44bece963a62827908de68

bin/internal/libimobiledevice.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
569016da35ccea9d9b7c81954342fabb98149fb5
1+
6150fcd888a0ee8a69dd47328509ee608c2e02dc

bin/internal/libplist.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20a2f8dbddcf1a96ad4c720b9afd1d0876d17ffc
1+
28812e5bed8621bd637b4129ab15a9c1abb9f57d

bin/internal/openssl.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e2e09d9fba1187f8d6aafaa34d4172f56f1ffb72
1+
2ef3f4c83bce209247479e707eebd5a84f606e28

bin/internal/usbmuxd.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ce98c346b7c1dc2a21faea4fd3f32c88e27ca2af
1+
eb45fd21469fa35e9bbc3b0a15a962460b8d23a2

packages/flutter_tools/lib/src/ios/devices.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ class IOSDevice extends Device {
510510

511511
@override
512512
Future<void> takeScreenshot(File outputFile) async {
513-
await _iMobileDevice.takeScreenshot(outputFile, id);
513+
await _iMobileDevice.takeScreenshot(outputFile);
514514
}
515515

516516
@override
@@ -832,8 +832,8 @@ class IOSDevicePortForwarder extends DevicePortForwarder {
832832
process = await _processUtils.start(
833833
<String>[
834834
_iproxyPath,
835-
'$hostPort:$devicePort',
836-
'--udid',
835+
hostPort.toString(),
836+
devicePort.toString(),
837837
_id,
838838
],
839839
environment: Map<String, String>.fromEntries(

packages/flutter_tools/lib/src/ios/mac.dart

+1-3
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,11 @@ class IMobileDevice {
6666
}
6767

6868
/// Captures a screenshot to the specified outputFile.
69-
Future<void> takeScreenshot(File outputFile, String deviceID) {
69+
Future<void> takeScreenshot(File outputFile) {
7070
return _processUtils.run(
7171
<String>[
7272
_idevicescreenshotPath,
7373
outputFile.path,
74-
'--udid',
75-
deviceID,
7674
],
7775
throwOnError: true,
7876
environment: Map<String, String>.fromEntries(

packages/flutter_tools/test/general.shard/ios/ios_device_port_forwarder_test.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ void main() {
2222
const int devicePort = 456;
2323
final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
2424
const FakeCommand(
25-
command: <String>['iproxy', '49154:456', '--udid', '1234'],
25+
command: <String>['iproxy', '49154', '456', '1234'],
2626
// iproxy does not exit with 0 when it cannot forward.
2727
exitCode: 0,
2828
stdout: null, // no stdout indicates failure.
2929
environment: kDyLdLibEntry,
3030
),
3131
const FakeCommand(
32-
command: <String>['iproxy', '49155:456', '--udid', '1234'],
32+
command: <String>['iproxy', '49155', '456', '1234'],
3333
exitCode: 0,
3434
stdout: 'not empty',
3535
environment: kDyLdLibEntry,

packages/flutter_tools/test/general.shard/ios/mac_test.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void main() {
8585
logger: logger,
8686
);
8787

88-
expect(() async => await iMobileDevice.takeScreenshot(mockOutputFile, '1234'), throwsA(anything));
88+
expect(() async => await iMobileDevice.takeScreenshot(mockOutputFile), throwsA(anything));
8989
});
9090

9191
testWithoutContext('idevicescreenshot captures and returns screenshot', () async {
@@ -100,8 +100,8 @@ void main() {
100100
logger: logger,
101101
);
102102

103-
await iMobileDevice.takeScreenshot(mockOutputFile, '1234');
104-
verify(mockProcessManager.run(<String>[idevicescreenshotPath, outputPath, '--udid', '1234'],
103+
await iMobileDevice.takeScreenshot(mockOutputFile);
104+
verify(mockProcessManager.run(<String>[idevicescreenshotPath, outputPath],
105105
environment: <String, String>{'DYLD_LIBRARY_PATH': libimobiledevicePath},
106106
workingDirectory: null,
107107
));

0 commit comments

Comments
 (0)