From f945079c658c0e26c5d536db8020970058662855 Mon Sep 17 00:00:00 2001 From: Christopher Fujino Date: Fri, 6 Sep 2019 14:23:20 -0700 Subject: [PATCH] remove fallback code for ios/usb artifacts (#39585) --- packages/flutter_tools/lib/src/ios/devices.dart | 12 +++--------- packages/flutter_tools/lib/src/ios/mac.dart | 17 ++++++----------- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/packages/flutter_tools/lib/src/ios/devices.dart b/packages/flutter_tools/lib/src/ios/devices.dart index b9734dfbe1..bc907ed3ac 100644 --- a/packages/flutter_tools/lib/src/ios/devices.dart +++ b/packages/flutter_tools/lib/src/ios/devices.dart @@ -39,14 +39,8 @@ class IOSDeploy { @required List launchArguments, }) async { final String iosDeployPath = artifacts.getArtifactPath(Artifact.iosDeploy, platform: TargetPlatform.ios); - // TODO(fujino): remove fallback once g3 updated - const List fallbackIosDeployPath = [ - '/usr/bin/env', - 'ios-deploy', - ]; - final List commandList = iosDeployPath != null ? [iosDeployPath] : fallbackIosDeployPath; final List launchCommand = [ - ...commandList, + iosDeployPath, '--id', deviceId, '--bundle', @@ -135,11 +129,11 @@ class IOSDevice extends Device { _installerPath = artifacts.getArtifactPath( Artifact.ideviceinstaller, platform: TargetPlatform.ios, - ) ?? 'ideviceinstaller'; // TODO(fujino): remove fallback once g3 updated + ); _iproxyPath = artifacts.getArtifactPath( Artifact.iproxy, platform: TargetPlatform.ios - ) ?? 'iproxy'; // TODO(fujino): remove fallback once g3 updated + ); } String _installerPath; diff --git a/packages/flutter_tools/lib/src/ios/mac.dart b/packages/flutter_tools/lib/src/ios/mac.dart index b67b450c6d..9a491a6dc0 100644 --- a/packages/flutter_tools/lib/src/ios/mac.dart +++ b/packages/flutter_tools/lib/src/ios/mac.dart @@ -94,17 +94,12 @@ class LockdownReturnCode { class IMobileDevice { IMobileDevice() - : _ideviceIdPath = artifacts.getArtifactPath(Artifact.ideviceId, platform: TargetPlatform.ios) - ?? 'idevice_id', // TODO(fujino): remove fallback once g3 updated - _ideviceinfoPath = artifacts.getArtifactPath(Artifact.ideviceinfo, platform: TargetPlatform.ios) - ?? 'ideviceinfo', // TODO(fujino): remove fallback once g3 updated - _idevicenamePath = artifacts.getArtifactPath(Artifact.idevicename, platform: TargetPlatform.ios) - ?? 'idevicename', // TODO(fujino): remove fallback once g3 updated - _idevicesyslogPath = artifacts.getArtifactPath(Artifact.idevicesyslog, platform: TargetPlatform.ios) - ?? 'idevicesyslog', // TODO(fujino): remove fallback once g3 updated - _idevicescreenshotPath = artifacts.getArtifactPath(Artifact.idevicescreenshot, platform: TargetPlatform.ios) - ?? 'idevicescreenshot' { // TODO(fujino): remove fallback once g3 updated - } + : _ideviceIdPath = artifacts.getArtifactPath(Artifact.ideviceId, platform: TargetPlatform.ios), + _ideviceinfoPath = artifacts.getArtifactPath(Artifact.ideviceinfo, platform: TargetPlatform.ios), + _idevicenamePath = artifacts.getArtifactPath(Artifact.idevicename, platform: TargetPlatform.ios), + _idevicesyslogPath = artifacts.getArtifactPath(Artifact.idevicesyslog, platform: TargetPlatform.ios), + _idevicescreenshotPath = artifacts.getArtifactPath(Artifact.idevicescreenshot, platform: TargetPlatform.ios); + final String _ideviceIdPath; final String _ideviceinfoPath; final String _idevicenamePath;