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
e1b16729
Commit
e1b16729
authored
Jan 06, 2016
by
Chinmay Garde
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1093 from chinmaygarde/master
Download the Xcode artifacts for the current engine revision
parents
854f9f71
f5f9440a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ios.dart
packages/flutter_tools/lib/src/commands/ios.dart
+6
-5
No files found.
packages/flutter_tools/lib/src/commands/ios.dart
View file @
e1b16729
...
...
@@ -9,6 +9,7 @@ import "package:path/path.dart" as path;
import
"../runner/flutter_command_runner.dart"
;
import
"../runner/flutter_command.dart"
;
import
"../artifacts.dart"
;
class
IOSCommand
extends
FlutterCommand
{
final
String
name
=
"ios"
;
...
...
@@ -22,17 +23,17 @@ class IOSCommand extends FlutterCommand {
}
static
Uri
_xcodeProjectUri
(
String
revision
)
{
return
Uri
.
parse
(
"https://storage.googleapis.com/flutter_infra/flutter/
$revision
/ios/FlutterXcode.zip"
);
String
uriString
=
"https://storage.googleapis.com/flutter_infra/flutter/
$revision
/ios/FlutterXcode.zip"
;
print
(
"Downloading
$uriString
..."
);
return
Uri
.
parse
(
uriString
);
}
Future
<
List
<
int
>>
_fetchXcodeArchive
()
async
{
print
(
"Fetching the Xcode project archive from the cloud..."
);
HttpClient
client
=
new
HttpClient
();
// TODO(chinmaygarde): Currently, engine releases are not tied to the release of the Xcode project
// archive. So use a "Current" tag. This will need to be replaced once releases
// are in lockstep with the engine
HttpClientRequest
request
=
await
client
.
getUrl
(
_xcodeProjectUri
(
"Current"
));
HttpClientRequest
request
=
await
client
.
getUrl
(
_xcodeProjectUri
(
ArtifactStore
.
engineRevision
));
HttpClientResponse
response
=
await
request
.
close
();
if
(
response
.
statusCode
!=
200
)
...
...
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