Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
23c632ab
Commit
23c632ab
authored
Feb 12, 2016
by
Chinmay Garde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iOS: Write a default .gitignore file for the "Generated" directory
parent
3d25df3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
ios.dart
packages/flutter_tools/lib/src/commands/ios.dart
+12
-4
No files found.
packages/flutter_tools/lib/src/commands/ios.dart
View file @
23c632ab
...
...
@@ -167,19 +167,27 @@ class IOSCommand extends FlutterCommand {
return
1
;
}
// Step 3: Setup default user editable files if this is the first run of
// Step 3: The generated project should NOT be checked into the users
// version control system. Be nice and write a gitignore for them if
// one does not exist.
File
generatedGitignore
=
new
File
(
path
.
join
(
iosFilesPath
,
".gitignore"
));
if
(!
generatedGitignore
.
existsSync
())
{
generatedGitignore
.
writeAsStringSync
(
"Generated/
\n
"
);
}
// Step 4: Setup default user editable files if this is the first run of
// the init command.
_writeUserEditableFilesIfNecessary
(
iosFilesPath
);
// Step
3
: Populate the Local.xcconfig with project specific paths
// Step
5
: Populate the Local.xcconfig with project specific paths
_setupXcodeProjXcconfig
(
path
.
join
(
xcodeprojPath
,
"Local.xcconfig"
));
// Step
4
: Write the REVISION file
// Step
6
: Write the REVISION file
File
revisionFile
=
new
File
(
path
.
join
(
xcodeprojPath
,
"REVISION"
));
revisionFile
.
createSync
();
revisionFile
.
writeAsStringSync
(
ArtifactStore
.
engineRevision
);
// Step
5
: Tell the user the location of the generated project.
// Step
7
: Tell the user the location of the generated project.
printStatus
(
"An Xcode project has been placed in 'ios/'."
);
printStatus
(
"You may edit it to modify iOS specific configuration."
);
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment