Pass uri instead of filepaths when hot-reloading. (#21201)

* Pass uri instead of filepaths when hot-reloading.

Bug: https://github.com/flutter/flutter/issues/21168

* Remove imports. Enable another test

* Restore skipping of test on mac
This commit is contained in:
Alexander Aprelev
2018-08-30 12:08:23 -07:00
committed by GitHub
parent 7598050fff
commit e4b7e87bdd
3 changed files with 7 additions and 16 deletions

View File

@@ -1149,13 +1149,11 @@ class Isolate extends ServiceObjectOwner {
final Map<String, dynamic> arguments = <String, dynamic>{
'pause': pause
};
// TODO(goderbauer): Transfer Uri (instead of file path) when remote end supports it.
// Note: Despite the name, `rootLibUri` and `packagesUri` expect file paths.
if (rootLibUri != null) {
arguments['rootLibUri'] = rootLibUri.toFilePath(windows: false);
arguments['rootLibUri'] = rootLibUri.toString();
}
if (packagesUri != null) {
arguments['packagesUri'] = packagesUri.toFilePath(windows: false);
arguments['packagesUri'] = packagesUri.toString();
}
final Map<String, dynamic> response = await invokeRpcRaw('_reloadSources', params: arguments);
return response;