Merge pull request #1935 from abarth/rm_ios_command
Remove flutter ios command
This commit is contained in:
@@ -19,7 +19,6 @@ import 'src/commands/create.dart';
|
||||
import 'src/commands/daemon.dart';
|
||||
import 'src/commands/devices.dart';
|
||||
import 'src/commands/install.dart';
|
||||
import 'src/commands/ios.dart';
|
||||
import 'src/commands/listen.dart';
|
||||
import 'src/commands/logs.dart';
|
||||
import 'src/commands/refresh.dart';
|
||||
@@ -49,7 +48,6 @@ Future main(List<String> args) async {
|
||||
..addCommand(new DaemonCommand(hideCommand: !verboseHelp))
|
||||
..addCommand(new DevicesCommand())
|
||||
..addCommand(new InstallCommand())
|
||||
..addCommand(new IOSCommand())
|
||||
..addCommand(new ListenCommand())
|
||||
..addCommand(new LogsCommand())
|
||||
..addCommand(new RefreshCommand())
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
// Copyright 2015 The Chromium 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 "dart:async";
|
||||
import "dart:io";
|
||||
|
||||
import "../base/globals.dart";
|
||||
import "../runner/flutter_command.dart";
|
||||
import '../ios/setup_xcodeproj.dart';
|
||||
|
||||
class IOSCommand extends FlutterCommand {
|
||||
final String name = "ios";
|
||||
final String description = "Commands for creating and updating Flutter iOS projects.";
|
||||
|
||||
IOSCommand() {
|
||||
argParser.addFlag('init', help: 'Initialize the Xcode project for building the iOS application');
|
||||
}
|
||||
|
||||
@override
|
||||
Future<int> runInProject() async {
|
||||
if (!Platform.isMacOS) {
|
||||
printStatus("iOS specific commands may only be run on a Mac.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (argResults['init'])
|
||||
return await setupXcodeProjectHarness();
|
||||
|
||||
printError("No flags specified.");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -541,7 +541,7 @@ bool _validateEngineRevision(ApplicationPackage app) {
|
||||
String iosRevision = _getIOSEngineRevision(app);
|
||||
|
||||
if (iosRevision != skyRevision) {
|
||||
printError("Error: incompatible sky_engine revision; please run 'flutter ios --init' to update.");
|
||||
printError("Error: incompatible sky_engine revision.");
|
||||
printStatus('sky_engine revision: $skyRevision, iOS engine revision: $iosRevision');
|
||||
return false;
|
||||
} else {
|
||||
|
||||
@@ -107,7 +107,6 @@ void _setupXcodeProjXcconfig(String filePath) {
|
||||
StringBuffer localsBuffer = new StringBuffer();
|
||||
|
||||
localsBuffer.writeln('// This is a generated file; do not edit or check into version control.');
|
||||
localsBuffer.writeln('// Recreate using `flutter ios --init`.');
|
||||
|
||||
String flutterRoot = path.normalize(Platform.environment[kFlutterRootEnvironmentVariableName]);
|
||||
localsBuffer.writeln('FLUTTER_ROOT=$flutterRoot');
|
||||
|
||||
Reference in New Issue
Block a user