From a433d1789ca5168b201b08696f6b9c35c58fbe9e Mon Sep 17 00:00:00 2001 From: Johannes Stahl Date: Sat, 3 Feb 2024 23:50:59 -0800 Subject: [PATCH] Documentation update for #22 (#56) * fix txt records returned as string instead of UInt8List * fix key sent instead of value * fix issue #46 * fix issue #45 * fix issue #45 * documentation update for hostAddresses * fix issue #22 for Windows and Android --- CHANGELOG.md | 7 +++++++ README.md | 2 ++ lib/flutter_nsd.dart | 1 + pubspec.yaml | 2 +- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b71e435..c155c83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ + +## 1.5.0 +Fixed #22: NsdServiceInfo now includes a list of addresses for the service (ipv4 or ipv6). This is +currently not supported on iOS or macOS + + + ## 1.4.0 Added support for Kotlin 1.5.20 diff --git a/README.md b/README.md index 2ce9e20..5de6321 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,8 @@ this [video](https://developer.apple.com/videos/play/wwdc2020/10110/). *Note that you don't need to worry about modifying `Info.plist` if you are just testing with a simulator.* +The iOS and macOS implementations currently do not return *hostAddresses* + ## Note about Windows Windows does not have native support for MDNS, therefore it is implemented using the https://github.com/mjansson/mdns library diff --git a/lib/flutter_nsd.dart b/lib/flutter_nsd.dart index 42e2ac9..f7c2d74 100644 --- a/lib/flutter_nsd.dart +++ b/lib/flutter_nsd.dart @@ -109,6 +109,7 @@ class FlutterNsd { /// Info class for holding discovered service class NsdServiceInfo { final String? hostname; + /// A list of strings containing the known addresses for this host (Ipv4 and Ipv6). The iOS implementation currently returns null final List? hostAddresses; final int? port; final String? name; diff --git a/pubspec.yaml b/pubspec.yaml index 4063885..f697fd0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_nsd description: A Flutter plugin for Network Service Discovery (mDNS) that uses platform API on Android, iOS, MacOS and Windows. -version: 1.4.0 +version: 1.5.0 homepage: https://github.com/Nimrodda/flutter_nsd environment: