diff --git a/CHANGELOG.md b/CHANGELOG.md index 1951585..b8f4f4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,13 @@ # Change Log -## 4.0.5 +## 5.0.0 1. Added hostIds list parameter to restrict scan to only these ids. +2. Breaking changes on calling static methods. You have to use instance of service now. + +**Breaking change** Replace these occurences in your project + + * HostScanner to HostScannerService.instance + * PortScanner to PortScannerService.instance ## 4.0.4 1. Bug fix for sync runs when async flag is true diff --git a/README.md b/README.md index 77bc8a2..a2ed0cf 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Future main() async { // or You can also get address using network_info_plus package // final String? address = await (NetworkInfo().getWifiIP()); final String subnet = address.substring(0, address.lastIndexOf('.')); - final stream = HostScanner.getAllPingableDevices(subnet, firstHostId: 1, lastHostId: 50, + final stream = HostScannerService.instance.getAllPingableDevices(subnet, firstHostId: 1, lastHostId: 50, progressCallback: (progress) { print('Progress for host discovery : $progress'); }); diff --git a/pubspec.yaml b/pubspec.yaml index b35addc..d4452b8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: network_tools description: Networking Tools library which can help you discover open ports, devices on subnet and many other things. -version: 4.0.5 +version: 5.0.0 issue_tracker: https://github.com/osociety/network_tools/issues repository: https://github.com/osociety/network_tools