Skip to content

Commit

Permalink
Documentation update for #22 (#56)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jnstahl authored Feb 4, 2024
1 parent d3ca82b commit a433d17
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/flutter_nsd.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>? hostAddresses;
final int? port;
final String? name;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit a433d17

Please sign in to comment.