From f5f9440a2d98badefda5109b06b8186f1788d2a1 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Wed, 6 Jan 2016 13:37:44 -0800 Subject: [PATCH] Download the Xcode artifacts for the current engine revision --- packages/flutter_tools/lib/src/commands/ios.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/flutter_tools/lib/src/commands/ios.dart b/packages/flutter_tools/lib/src/commands/ios.dart index eecfc8ebbf..5de0ee4fea 100644 --- a/packages/flutter_tools/lib/src/commands/ios.dart +++ b/packages/flutter_tools/lib/src/commands/ios.dart @@ -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> _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)