2.0.6
This commit is contained in:
parent
0117b2f0b4
commit
ed1422b4fb
3 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
# 2.0.6
|
||||||
|
* Support `--observe=*`, `--enable-vm-service=*` (`startsWith`, instead of `==`).
|
||||||
|
|
||||||
# 2.0.5
|
# 2.0.5
|
||||||
* Use `dart:developer` to find the Observatory URI.
|
* Use `dart:developer` to find the Observatory URI.
|
||||||
* Use the app's logger when necessary.
|
* Use the app's logger when necessary.
|
||||||
|
|
|
@ -161,8 +161,11 @@ class HotReloader {
|
||||||
_logWarning(
|
_logWarning(
|
||||||
'You have instantiated a HotReloader without providing any filesystem paths to watch.');
|
'You have instantiated a HotReloader without providing any filesystem paths to watch.');
|
||||||
|
|
||||||
if (!Platform.executableArguments.contains('--observe') &&
|
bool _sw(String s) {
|
||||||
!Platform.executableArguments.contains('--enable-vm-service')) {
|
return Platform.executableArguments.any((ss) => ss.startsWith(s));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!_sw('--observe') && !_sw('--enable-vm-service')) {
|
||||||
_logWarning(
|
_logWarning(
|
||||||
'You have instantiated a HotReloader without passing `--enable-vm-service` or `--observe` to the Dart VM. Hot reloading will be disabled.');
|
'You have instantiated a HotReloader without passing `--enable-vm-service` or `--observe` to the Dart VM. Hot reloading will be disabled.');
|
||||||
isHot = false;
|
isHot = false;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: angel_hot
|
name: angel_hot
|
||||||
description: Supports hot reloading/hot code push of Angel servers on file changes.
|
description: Supports hot reloading/hot code push of Angel servers on file changes.
|
||||||
version: 2.0.5
|
version: 2.0.6
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
homepage: https://github.com/angel-dart/hot
|
homepage: https://github.com/angel-dart/hot
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue