Commit 8231f579 authored by Chinmay Garde's avatar Chinmay Garde

Fix travis builds and linter warnings

parent 08fdf99f
...@@ -22,7 +22,7 @@ class IOSCommand extends FlutterCommand { ...@@ -22,7 +22,7 @@ class IOSCommand extends FlutterCommand {
} }
static Uri _xcodeProjectUri(String revision) { static Uri _xcodeProjectUri(String revision) {
return Uri.parse("https://storage.googleapis.com/flutter_infra/flutter/${revision}/ios/FlutterXcode.zip"); return Uri.parse("https://storage.googleapis.com/flutter_infra/flutter/$revision/ios/FlutterXcode.zip");
} }
Future<List<int>> _fetchXcodeArchive() async { Future<List<int>> _fetchXcodeArchive() async {
...@@ -98,14 +98,14 @@ class IOSCommand extends FlutterCommand { ...@@ -98,14 +98,14 @@ class IOSCommand extends FlutterCommand {
localsBuffer.writeln("// Recreate using `flutter ios`"); localsBuffer.writeln("// Recreate using `flutter ios`");
String flutterRoot = path.normalize(Platform.environment[kFlutterRootEnvironmentVariableName]); String flutterRoot = path.normalize(Platform.environment[kFlutterRootEnvironmentVariableName]);
localsBuffer.writeln("FLUTTER_ROOT=${flutterRoot}"); localsBuffer.writeln("FLUTTER_ROOT=$flutterRoot");
// This holds because requiresProjectRoot is true for this command // This holds because requiresProjectRoot is true for this command
String applicationRoot = path.normalize(Directory.current.path); String applicationRoot = path.normalize(Directory.current.path);
localsBuffer.writeln("FLUTTER_APPLICATION_PATH=${applicationRoot}"); localsBuffer.writeln("FLUTTER_APPLICATION_PATH=$applicationRoot");
String dartSDKPath = path.normalize(path.join(Platform.resolvedExecutable, "..", "..")); String dartSDKPath = path.normalize(path.join(Platform.resolvedExecutable, "..", ".."));
localsBuffer.writeln("DART_SDK_PATH=${dartSDKPath}"); localsBuffer.writeln("DART_SDK_PATH=$dartSDKPath");
File localsFile = new File(filePath); File localsFile = new File(filePath);
await localsFile.create(recursive: true); await localsFile.create(recursive: true);
...@@ -147,7 +147,7 @@ class IOSCommand extends FlutterCommand { ...@@ -147,7 +147,7 @@ class IOSCommand extends FlutterCommand {
} }
if (argResults['init']) if (argResults['init'])
return _runInitCommand(); return await _runInitCommand();
print("No flags specified..."); print("No flags specified...");
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment