Add backend tools for extensible iOS apps (#4250)

Instead of embedding Flutter.framework and BuildFlutterApp in the Xcode
project, we store these in flutter.git, where we can reference them.
This commit is contained in:
Adam Barth
2016-05-27 15:30:42 -07:00
parent c98ce02417
commit aee32698ac
2 changed files with 93 additions and 0 deletions

View File

@@ -279,6 +279,12 @@ class FlutterEngine {
if (!dir.existsSync() || allDirty) {
await _downloadItem('Downloading engine artifacts $dirName...',
url + dirName + '/artifacts.zip', dir);
File frameworkZip = new File(path.join(dir.path, 'Flutter.framework.zip'));
if (frameworkZip.existsSync()) {
Directory framework = new Directory(path.join(dir.path, 'Flutter.framework'));
framework.createSync();
os.unzip(frameworkZip, framework);
}
}
}