This commit is contained in:
Tobe O 2019-05-06 19:24:21 -04:00
parent 0117b2f0b4
commit ed1422b4fb
3 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,6 @@
# 2.0.6
* Support `--observe=*`, `--enable-vm-service=*` (`startsWith`, instead of `==`).
# 2.0.5
* Use `dart:developer` to find the Observatory URI.
* Use the app's logger when necessary.

View file

@ -161,8 +161,11 @@ class HotReloader {
_logWarning(
'You have instantiated a HotReloader without providing any filesystem paths to watch.');
if (!Platform.executableArguments.contains('--observe') &&
!Platform.executableArguments.contains('--enable-vm-service')) {
bool _sw(String s) {
return Platform.executableArguments.any((ss) => ss.startsWith(s));
}
if (!_sw('--observe') && !_sw('--enable-vm-service')) {
_logWarning(
'You have instantiated a HotReloader without passing `--enable-vm-service` or `--observe` to the Dart VM. Hot reloading will be disabled.');
isHot = false;

View file

@ -1,6 +1,6 @@
name: angel_hot
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>
homepage: https://github.com/angel-dart/hot
environment: