mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
remove fallback code for ios/usb artifacts (#39585)
This commit is contained in:
parent
b2da79ce98
commit
f945079c65
@ -39,14 +39,8 @@ class IOSDeploy {
|
||||
@required List<String> launchArguments,
|
||||
}) async {
|
||||
final String iosDeployPath = artifacts.getArtifactPath(Artifact.iosDeploy, platform: TargetPlatform.ios);
|
||||
// TODO(fujino): remove fallback once g3 updated
|
||||
const List<String> fallbackIosDeployPath = <String>[
|
||||
'/usr/bin/env',
|
||||
'ios-deploy',
|
||||
];
|
||||
final List<String> commandList = iosDeployPath != null ? <String>[iosDeployPath] : fallbackIosDeployPath;
|
||||
final List<String> launchCommand = <String>[
|
||||
...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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user