Commit c2f50440 authored by Chinmay Garde's avatar Chinmay Garde

Refactor: Rename initialize_xcode.dart to setup_xcodeproj.dart

parent 5cebf70d
......@@ -13,7 +13,7 @@ import '../android/android.dart' as android;
import '../artifacts.dart';
import '../base/globals.dart';
import '../dart/pub.dart';
import '../ios/initialize_xcode.dart';
import '../ios/setup_xcodeproj.dart';
class CreateCommand extends Command {
final String name = 'create';
......
......@@ -7,7 +7,7 @@ import "dart:io";
import "../base/globals.dart";
import "../runner/flutter_command.dart";
import "../ios/initialize_xcode.dart";
import '../ios/setup_xcodeproj.dart';
class IOSCommand extends FlutterCommand {
final String name = "ios";
......@@ -25,7 +25,7 @@ class IOSCommand extends FlutterCommand {
}
if (argResults['init'])
return await initializeXcodeProjectHarness();
return await setupXcodeProjectHarness();
printError("No flags specified.");
return 1;
......
......@@ -17,7 +17,7 @@ import '../build_configuration.dart';
import '../device.dart';
import '../services.dart';
import '../toolchain.dart';
import '../ios/initialize_xcode.dart';
import '../ios/setup_xcodeproj.dart';
import 'simulator.dart';
const String _ideviceinstallerInstructions =
......@@ -562,7 +562,7 @@ String _getIOSEngineRevision(ApplicationPackage app) {
Future<bool> _buildIOSXcodeProject(ApplicationPackage app, { bool buildForDevice }) async {
if (!FileSystemEntity.isDirectorySync(app.localPath)) {
printTrace('Path "${path.absolute(app.localPath)}" does not exist. Initializing the Xcode project.');
if ((await initializeXcodeProjectHarness()) != 0) {
if ((await setupXcodeProjectHarness()) != 0) {
printError('Could not initialize the Xcode project.');
return false;
}
......
......@@ -124,7 +124,7 @@ void _setupXcodeProjXcconfig(String filePath) {
localsFile.writeAsStringSync(localsBuffer.toString());
}
Future<int> initializeXcodeProjectHarness() async {
Future<int> setupXcodeProjectHarness() async {
// Step 1: Fetch the archive from the cloud
String iosFilesPath = path.join(Directory.current.path, 'ios');
String xcodeprojPath = path.join(iosFilesPath, '.generated');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment