1// Copyright 2018 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 'fuchsia_sdk.dart'; 9 10/// The [FuchsiaWorkflow] instance. 11FuchsiaWorkflow get fuchsiaWorkflow => context.get<FuchsiaWorkflow>(); 12 13/// The Fuchsia-specific implementation of a [Workflow]. 14/// 15/// This workflow assumes development within the fuchsia source tree, 16/// including a working fx command-line tool in the user's PATH. 17class FuchsiaWorkflow implements Workflow { 18 19 @override 20 bool get appliesToHostPlatform => platform.isLinux || platform.isMacOS; 21 22 @override 23 bool get canListDevices { 24 return fuchsiaArtifacts.devFinder != null; 25 } 26 27 @override 28 bool get canLaunchDevices { 29 return fuchsiaArtifacts.devFinder != null && fuchsiaArtifacts.sshConfig != null; 30 } 31 32 @override 33 bool get canListEmulators => false; 34} 35