Merge pull request #2400 from yjbanov/gen-flx-on-first-ios-launch

[ios] generate flx on first ios launch
This commit is contained in:
Yegor 2016-03-03 16:23:00 -08:00
commit df73b48105

View File

@ -370,11 +370,15 @@ class IOSSimulator extends Device {
}
Future<bool> _setupUpdatedApplicationBundle(ApplicationPackage app, Toolchain toolchain) async {
if (_applicationIsInstalledAndRunning(app)) {
return _sideloadUpdatedAssetsForInstalledApplicationBundle(app, toolchain);
} else {
bool sideloadResult = await _sideloadUpdatedAssetsForInstalledApplicationBundle(app, toolchain);
if (!sideloadResult)
return false;
if (!_applicationIsInstalledAndRunning(app))
return _buildAndInstallApplicationBundle(app);
}
return true;
}
Future<bool> _buildAndInstallApplicationBundle(ApplicationPackage app) async {