Merge pull request #1801 from tvolkert/master

Ignore generated/ instead of ios/
This commit is contained in:
Todd Volkert 2016-02-12 09:36:51 -08:00
commit ffcdd0d1a3
3 changed files with 3 additions and 4 deletions

1
examples/.gitignore vendored
View File

@ -5,6 +5,5 @@
.packages
.pub/
build/
ios/
packages
pubspec.lock

View File

@ -82,7 +82,7 @@ class AndroidApk extends ApplicationPackage {
class IOSApp extends ApplicationPackage {
static const String _defaultId = 'io.flutter.runner.Runner';
static const String _defaultPath = 'ios/Generated';
static const String _defaultPath = 'ios/.generated';
IOSApp({
String localPath: _defaultPath,

View File

@ -152,7 +152,7 @@ class IOSCommand extends FlutterCommand {
Future<int> _runInitCommand() async {
// Step 1: Fetch the archive from the cloud
String iosFilesPath = path.join(Directory.current.path, "ios");
String xcodeprojPath = path.join(iosFilesPath, "Generated");
String xcodeprojPath = path.join(iosFilesPath, ".generated");
List<int> archiveBytes = await _fetchXcodeArchive();
if (archiveBytes.isEmpty) {
@ -172,7 +172,7 @@ class IOSCommand extends FlutterCommand {
// one does not exist.
File generatedGitignore = new File(path.join(iosFilesPath, ".gitignore"));
if (!generatedGitignore.existsSync()) {
generatedGitignore.writeAsStringSync("Generated/\n");
generatedGitignore.writeAsStringSync(".generated/\n");
}
// Step 4: Setup default user editable files if this is the first run of