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
c2f50440
Commit
c2f50440
authored
Feb 16, 2016
by
Chinmay Garde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor: Rename initialize_xcode.dart to setup_xcodeproj.dart
parent
5cebf70d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
create.dart
packages/flutter_tools/lib/src/commands/create.dart
+1
-1
ios.dart
packages/flutter_tools/lib/src/commands/ios.dart
+2
-2
device_ios.dart
packages/flutter_tools/lib/src/ios/device_ios.dart
+2
-2
setup_xcodeproj.dart
packages/flutter_tools/lib/src/ios/setup_xcodeproj.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/commands/create.dart
View file @
c2f50440
...
...
@@ -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'
;
...
...
packages/flutter_tools/lib/src/commands/ios.dart
View file @
c2f50440
...
...
@@ -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
initialize
XcodeProjectHarness
();
return
await
setup
XcodeProjectHarness
();
printError
(
"No flags specified."
);
return
1
;
...
...
packages/flutter_tools/lib/src/ios/device_ios.dart
View file @
c2f50440
...
...
@@ -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
initialize
XcodeProjectHarness
())
!=
0
)
{
if
((
await
setup
XcodeProjectHarness
())
!=
0
)
{
printError
(
'Could not initialize the Xcode project.'
);
return
false
;
}
...
...
packages/flutter_tools/lib/src/ios/
initialize_xcode
.dart
→
packages/flutter_tools/lib/src/ios/
setup_xcodeproj
.dart
View file @
c2f50440
...
...
@@ -124,7 +124,7 @@ void _setupXcodeProjXcconfig(String filePath) {
localsFile
.
writeAsStringSync
(
localsBuffer
.
toString
());
}
Future
<
int
>
initialize
XcodeProjectHarness
()
async
{
Future
<
int
>
setup
XcodeProjectHarness
()
async
{
// Step 1: Fetch the archive from the cloud
String
iosFilesPath
=
path
.
join
(
Directory
.
current
.
path
,
'ios'
);
String
xcodeprojPath
=
path
.
join
(
iosFilesPath
,
'.generated'
);
...
...
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