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

import '../runner/flutter_command.dart';

7 8
class MakeHostAppEditableCommand extends FlutterCommand {
  MakeHostAppEditableCommand() {
9
    requiresPubspecYaml();
10 11 12

    argParser.addFlag(
      'ios',
13
      help: "Whether to make this project's iOS app editable.",
14 15 16 17
      negatable: false,
    );
    argParser.addFlag(
      'android',
18
      help: "Whether ot make this project's Android app editable.",
19 20
      negatable: false,
    );
21 22 23
  }

  @override
24 25 26
  final String name = 'make-host-app-editable';

  @override
27
  bool get deprecated => true;
28 29

  @override
30
  final String description = 'Moves host apps from generated directories to non-generated directories so that they can be edited by developers.';
31 32

  @override
33
  Future<FlutterCommandResult> runCommand() async {
34
    // Deprecated. No-op.
35
    return FlutterCommandResult.success();
36 37
  }
}