ios_workflow.dart 840 Bytes
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1
// Copyright 2014 The Flutter Authors. All rights reserved.
2 3 4 5
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import '../doctor.dart';
6
import '../globals.dart' as globals;
7

8 9
class IOSWorkflow implements Workflow {
  const IOSWorkflow();
10

11
  @override
12
  bool get appliesToHostPlatform => globals.platform.isMacOS;
13

14
  // We need xcode (+simctl) to list simulator devices, and libimobiledevice to list real devices.
15
  @override
16
  bool get canListDevices => globals.xcode.isInstalledAndMeetsVersionCheck && globals.xcode.isSimctlInstalled;
17 18 19

  // We need xcode to launch simulator devices, and ideviceinstaller and ios-deploy
  // for real devices.
20
  @override
21
  bool get canLaunchDevices => globals.xcode.isInstalledAndMeetsVersionCheck;
22

23 24
  @override
  bool get canListEmulators => false;
25
}