• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2016 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5import '../base/context.dart';
6import '../base/platform.dart';
7import '../doctor.dart';
8import '../macos/xcode.dart';
9
10IOSWorkflow get iosWorkflow => context.get<IOSWorkflow>();
11
12class IOSWorkflow implements Workflow {
13  const IOSWorkflow();
14
15  @override
16  bool get appliesToHostPlatform => platform.isMacOS;
17
18  // We need xcode (+simctl) to list simulator devices, and libimobiledevice to list real devices.
19  @override
20  bool get canListDevices => xcode.isInstalledAndMeetsVersionCheck && xcode.isSimctlInstalled;
21
22  // We need xcode to launch simulator devices, and ideviceinstaller and ios-deploy
23  // for real devices.
24  @override
25  bool get canLaunchDevices => xcode.isInstalledAndMeetsVersionCheck;
26
27  @override
28  bool get canListEmulators => false;
29}
30