Commit 3a9956fb authored by Chinmay Garde's avatar Chinmay Garde

Bump engine revision and ensure the Xcode project setup expects assets at the archive root.

parent 2fc4f207
dcbd64e460d922b9b7b86235db1472fef89933e7
646500663e7db5deaab2d0a8a96ace2b29d0da27
......@@ -63,24 +63,14 @@ Future<bool> _inflateXcodeArchive(String directory, List<int> archiveBytes) asyn
// Cleanup the temp directory after unzipping
runSync(['/bin/rm', '-rf', tempDir.path]);
Directory flutterDir = new Directory(path.join(directory, 'Flutter'));
bool flutterDirExists = await flutterDir.exists();
if (!flutterDirExists)
// Verify that we have an Xcode project
Directory flutterProj = new Directory(path.join(directory, 'FlutterApplication.xcodeproj'));
bool flutterProjExists = await flutterProj.exists();
if (!flutterProjExists) {
printError("${flutterProj.path} does not exist");
return false;
// Move contents of the Flutter directory one level up
// There is no dart:io API to do this. See https://github.com/dart-lang/sdk/issues/8148
for (FileSystemEntity file in flutterDir.listSync()) {
try {
runCheckedSync(['/bin/mv', file.path, directory]);
} catch (error) {
return false;
}
}
runSync(['/bin/rm', '-rf', flutterDir.path]);
return true;
}
......
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