blob: e6759d98b0429111a67368aa8b0ff8ce7d4f9c23 [file] [log] [blame]
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../base/context.dart';
import '../base/platform.dart';
import '../doctor.dart';
import 'fuchsia_sdk.dart';
/// The [FuchsiaWorkflow] instance.
FuchsiaWorkflow get fuchsiaWorkflow => context.get<FuchsiaWorkflow>();
/// The Fuchsia-specific implementation of a [Workflow].
/// This workflow assumes development within the fuchsia source tree,
/// including a working fx command-line tool in the user's PATH.
class FuchsiaWorkflow implements Workflow {
bool get appliesToHostPlatform => platform.isLinux || platform.isMacOS;
bool get canListDevices {
return fuchsiaArtifacts.devFinder != null;
bool get canLaunchDevices {
return fuchsiaArtifacts.devFinder != null && fuchsiaArtifacts.sshConfig != null;
bool get canListEmulators => false;