Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
e98c7db
Initial refactor/adding of mdns
dnfield Oct 18, 2018
6ef8c6e
move helper methods to tool/
dnfield Oct 18, 2018
abc4b4b
update docs, add example
dnfield Oct 18, 2018
1cba2f3
remove RRType.any - not ready
dnfield Oct 18, 2018
c2599f4
README
dnfield Oct 18, 2018
702e43f
remove lint ignore, update CI
dnfield Oct 18, 2018
e22242c
Update docs, expose multicast parameter
dnfield Oct 19, 2018
a6b6064
fix tests, run analyze first
dnfield Oct 19, 2018
d18c696
Fix readme for mDNS
dnfield Oct 19, 2018
8e43aa0
move bin to example, remove args from main pubspec
dnfield Oct 20, 2018
beff87a
Update example
dnfield Oct 20, 2018
cc32e81
Remove collection dep
dnfield Oct 20, 2018
19dcf1d
Fix unintentional change to Palette, avoid abbreviations, real hash c…
dnfield Oct 22, 2018
7ecc2fe
vertical alignment
dnfield Oct 22, 2018
ae818bd
dartfmt and remove all references to args package
dnfield Oct 23, 2018
373f4b4
cleanup
dnfield Oct 24, 2018
e277ffd
typo, word wrap
dnfield Oct 24, 2018
fc8a851
Add type parameters
dnfield Oct 24, 2018
702793e
Update examples to use type parameters
dnfield Oct 25, 2018
39654ab
minor fixes
dnfield Nov 2, 2018
e8414a6
remvoe debugging cde
dnfield Nov 7, 2018
d8bd6fc
move dumpDatagram to tools
dnfield Nov 7, 2018
1cce45d
format
dnfield Nov 7, 2018
01205ea
Set socket options
dnfield Jan 17, 2019
34e1cf1
bump
dnfield Jan 19, 2019
fa4ec43
update version constraint, fix analyzer issues
dnfield Jan 19, 2019
dfd64e1
Fix cache, var names, comments
dnfield Jan 24, 2019
1aecd8d
one missed comment
dnfield Jan 24, 2019
8599185
missed renames
dnfield Jan 24, 2019
d800ac8
formatting
dnfield Jan 24, 2019
b609bbd
missing comment
dnfield Jan 24, 2019
8df0f34
correct homepage
dnfield Jan 24, 2019
d590ce8
Merge pull request #15 from dnfield/master
dnfield Jan 24, 2019
279d428
Add bsdiff package that implements binary diff/patch algorithm.
sbaranov Feb 20, 2019
babcce6
Merge pull request #16 from sbaranov/master
sbaranov Feb 21, 2019
d94f152
Separate record questions and answers
blasten May 3, 2019
7cb0cf2
Fix counters
blasten May 3, 2019
d147420
Add tests
blasten May 3, 2019
9f30537
Split into multiple named values
blasten May 3, 2019
1c43452
Scan answers, authorities, additionals ignore questions
May 3, 2019
25bee7f
Version bump
blasten May 3, 2019
3da1422
{} -> Set
blasten May 3, 2019
4598775
Format
blasten May 3, 2019
4fbc282
Update changelog
blasten May 3, 2019
ab5c093
Order by last version
blasten May 4, 2019
290e2a6
Version bump
May 4, 2019
1b9bc8d
Allow configuration of port and address
Jul 31, 2019
0aff36f
Catch FormatException in packet decoding.
zanderso Aug 13, 2019
f9f3899
Merge pull request #27 from zanderso/handle-non-utf8
zanderso Aug 13, 2019
8f9e098
Fix import in README
cbenhagen Aug 27, 2019
35be280
Sync analysis options (#29)
goderbauer Aug 28, 2019
d7c5085
Merge pull request #28 from cbenhagen/patch-1
dnfield Aug 28, 2019
513b2eb
[multicast_dns] Make decode more resiliant against non-utf8 fields (#38)
zanderso Oct 3, 2019
aead295
Bump multicast_dns version number for utf8 bugfix (#42)
zanderso Oct 3, 2019
31a328a
Fixed Typo: Corrected record (#53)
rohanthacker Dec 18, 2019
6bf7e0d
Create flutter_template_images package (#118)
stuartmorgan-g Mar 17, 2020
5d5ad4a
Move Windows icon (#127)
stuartmorgan-g Mar 30, 2020
67c201d
sorted pub dependencies (#231)
gaaclarke Oct 20, 2020
1ecbdc4
Add maskable icons to improve lighthouse score (#259)
sidrao2006 Jan 27, 2021
9914ae9
migrate mDNS to null safety (#297)
Mar 4, 2021
46e6dfb
[flutter_template_images] Add support for new template and shared pla…
brianegan Mar 10, 2021
04e5d5a
Sync lints and fix offenders (#308)
goderbauer Mar 11, 2021
213c3c1
Standardize copyright author and year (#338)
stuartmorgan-g May 1, 2021
95d6faf
Standardize slight variations in license format (#339)
stuartmorgan-g May 2, 2021
acd8d1e
Add missing license blocks to files (#340)
stuartmorgan-g May 5, 2021
ce4e455
Fix 'publish' and 'test' failures (#346)
stuartmorgan-g May 10, 2021
77bc379
Revert "[flutter_template_images] Add support for new template and sh…
stuartmorgan-g May 14, 2021
c44b2aa
Add additional Windows template icons (#357)
cbracken May 14, 2021
5bca8d3
[flutter_template_images] Fix maskable icons (#363)
sidrao2006 Jun 2, 2021
5a01579
Enable pubspec checks (#367)
stuartmorgan-g Jun 2, 2021
aa56d38
[flutter_template_images] Support the new skeleton app template (#366)
filiph Jun 28, 2021
876eab4
[multicast_dns] Fix for #88242 README.md broken link for bin dir (#436)
guyluz11 Aug 15, 2021
54de48b
Close the IPv6 any addr socket in stop() (#455)
ghermana Sep 2, 2021
b028dd0
Test that IPv6 sockets get closed (54de48b1c8835bedf453920089c93cbd85…
dnfield Sep 2, 2021
eeae6c6
[ci] Roll repo tooling to 0.7.3 (#520)
stuartmorgan-g Dec 2, 2021
f2bfbdf
[multicast_dns] make MDnsClient.start() idempotent (#525)
corecode Jan 5, 2022
a615101
[all] Update repo links to 'main' (#552)
stuartmorgan-g Jan 25, 2022
ba0c411
[flutter_template_images] Add macOS app icon assets (#1930)
cbracken May 13, 2022
407d491
[flutter_template_images] Minor cleanup (#1951)
stuartmorgan-g May 19, 2022
d24ae01
[various] migrate from ui.hash* to Object.hash* (#1581)
werainkhatri May 31, 2022
6ae280d
[flutter_template_images] Add iOS app icon assets (#2266)
RockerFlower Jul 7, 2022
b3bc6bc
add StandardMessageCodec extracted from Flutter SDK (#2434)
Aug 9, 2022
f47676a
[ci] Update repository tooling to 0.9.1 (#2425)
stuartmorgan-g Aug 17, 2022
069bcc7
[analysis_options] sync lint rules with flutter/flutter (#2495)
goderbauer Aug 25, 2022
421a92a
[ci] Roll repo tooling to 0.9.2 (#2522)
stuartmorgan-g Aug 29, 2022
2094e6f
[ci] Enable min SDK version checks (#3095)
stuartmorgan-g Jan 27, 2023
c27f91f
[ci] Enable no_runtimeType_toString (#3129)
stuartmorgan-g Feb 1, 2023
638312b
[all] Update Dart SDK max to 4.0.0 (#3509)
stuartmorgan-g Mar 22, 2023
e517db5
[various] Update minimum Flutter version to 3.3 (#3967)
stuartmorgan-g May 12, 2023
387e08b
[ci] Add a web version of Dart unit tests (#4352)
stuartmorgan-g Jul 5, 2023
201275d
[flutter_plugin_tools] Reimplements the excerpt system inline in the …
Hixie Jul 11, 2023
e8da9aa
[ci] Update minimums for 3.13 stable (#4731)
stuartmorgan-g Aug 17, 2023
10e499a
[all] Add topics to pubspecs (#4771)
stuartmorgan-g Aug 29, 2023
6019028
[ci] Roll minimum allowable Flutter to 3.10 (#5425)
stuartmorgan-g Nov 18, 2023
9b0e3c1
[multicast_dns] Adjust README (#5529)
stuartmorgan-g Dec 9, 2023
b0aafc1
[ci/various] Update for 3.19 stable (#6147)
stuartmorgan-g Feb 16, 2024
20e7419
Update the repo for the 3.22 stable release (#6730)
stuartmorgan-g May 15, 2024
395b202
[multicast_dns] Optimized Socket Binding: Always bind to 0.0.0.0 for …
biagiopietro Jun 24, 2024
bb12597
[various] Update flutter.dev links to more reliable destinations (#6963)
parlough Jun 25, 2024
b099b14
[ci] Update repository for the release of Flutter 3.24 (#7331)
stuartmorgan-g Aug 7, 2024
8771d80
[ci] Update for 3.27 stable release (#8284)
stuartmorgan-g Dec 12, 2024
b639f79
Re-create `templates/app`, add deprecation notices for `app_shared` a…
matanlurey Dec 26, 2024
a5bc734
Delete unused templates `skeleton` and `app_shared` and release as `5…
matanlurey Jan 3, 2025
16a5ff9
[multicast_dns] Rewrite `_readFQDN` to avoid recursion (#8390)
andrewkolos Jan 27, 2025
40f4bc7
[various] Disable sandbox in Chrome dart tests (#8909)
stuartmorgan-g Mar 26, 2025
ba3110a
[multicast_dns] MDnsClient::listen supports onError callback (#8888)
alexander-irion Apr 2, 2025
4e19ed6
[ci] Update repository for 3.29 release (#9270)
stuartmorgan-g May 21, 2025
329708e
Update repo for 3.32 stable (#9311)
stuartmorgan-g May 23, 2025
c602267
Update repo for 3.35 stable release (#9816)
stuartmorgan-g Aug 16, 2025
c202ca6
[mustache_template] Initial import (#9944)
stuartmorgan-g Sep 4, 2025
0a70b37
Remove "All right reserved" from all files (#10066)
stuartmorgan-g Sep 24, 2025
48dcf97
[mustache_template] Emoji support (#10110)
davidmartos96 Oct 22, 2025
8d072b3
Update repo for 3.38 (#10405)
stuartmorgan-g Nov 12, 2025
9a9cd53
[all] Omit obvious local types (#10511)
stuartmorgan-g Nov 24, 2025
7cd002a
[mustache_template] Improve error throwing (#10700)
augustocesarperin Jan 7, 2026
069f700
[ci] Update repo for 3.41 (#11017)
stuartmorgan-g Feb 17, 2026
e16a7a7
[mustache_template] Fix broken README link (#11306)
stuartmorgan-g Mar 25, 2026
350f1a3
[mustache_template] Fix auto-generated specification tests, run with …
jslater89 Apr 13, 2026
cfdd1d3
Comment out the test that uses implemented NetworkInterface to accomm…
aam May 7, 2026
7abdf27
Roll Flutter from 707dbc0420a3 to 23f6f5853f50 (149 revisions) (#11700)
engine-flutter-autoroll May 14, 2026
639e000
[tool] Unify most validation commands (#11641)
stuartmorgan-g May 20, 2026
39a1cc8
[ci] Update repo for 3.44 stable release (#11741)
stuartmorgan-g May 20, 2026
f100e24
Updated analysis_options line width from flutter/flutter (#11692)
justinmc Jun 3, 2026
4e811cc
Initial import of flutter_template_images, multicast_dns, and mustach…
stuartmorgan-g Jun 5, 2026
41b0533
[various] Update metadata for imported packages
stuartmorgan-g Jun 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
'p: flutter_template_images':
- changed-files:
- any-glob-to-any-file:
- packages/flutter_template_images/**/*

'p: multicast_dns':
- changed-files:
- any-glob-to-any-file:
- packages/multicast_dns/**/*

'p: mustache_template':
- changed-files:
- any-glob-to-any-file:
- third_party/packages/mustache_template/**/*

'p: standard_message_codec':
- changed-files:
- any-glob-to-any-file:
- packages/standard_message_codec/**/*

'p: vector_math':
- changed-files:
- any-glob-to-any-file:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Directory for files cached by the repo tooling
/.repo_tool_cache/

.DS_Store
.atom/
.idea
Expand Down
1 change: 1 addition & 0 deletions .repo_tool_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ allowed_dependencies:
- build_runner
- build_test
- build_web_compilers
- meta
- path
- test
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ These are the packages hosted in this repository:

| Package | Pub | Points | Usage | Issues | Pull requests |
|---------|-----|--------|-------|--------|---------------|
| [flutter\_template\_images](./packages/flutter_template_images/) | [![pub package](https://img.shields.io/pub/v/flutter_template_images.svg)](https://pub.dev/packages/flutter_template_images) | [![pub points](https://img.shields.io/pub/points/flutter_template_images)](https://pub.dev/packages/flutter_template_images/score) | [![downloads](https://img.shields.io/pub/dm/flutter_template_images)](https://pub.dev/packages/flutter_template_images/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20flutter_template_images?label=)](https://github.com/flutter/flutter/labels/p%3A%20flutter_template_images) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/core-packages/p%3A%20flutter_template_images?label=)](https://github.com/flutter/core-packages/labels/p%3A%20flutter_template_images) |
| [multicast\_dns](./packages/multicast_dns/) | [![pub package](https://img.shields.io/pub/v/multicast_dns.svg)](https://pub.dev/packages/multicast_dns) | [![pub points](https://img.shields.io/pub/points/multicast_dns)](https://pub.dev/packages/multicast_dns/score) | [![downloads](https://img.shields.io/pub/dm/multicast_dns)](https://pub.dev/packages/multicast_dns/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20multicast_dns?label=)](https://github.com/flutter/flutter/labels/p%3A%20multicast_dns) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/core-packages/p%3A%20multicast_dns?label=)](https://github.com/flutter/core-packages/labels/p%3A%20multicast_dns) |
| [mustache\_template](./third_party/packages/mustache_template/) | [![pub package](https://img.shields.io/pub/v/mustache_template.svg)](https://pub.dev/packages/mustache_template) | [![pub points](https://img.shields.io/pub/points/mustache_template)](https://pub.dev/packages/mustache_template/score) | [![downloads](https://img.shields.io/pub/dm/mustache_template)](https://pub.dev/packages/mustache_template/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20mustache_template?label=)](https://github.com/flutter/flutter/labels/p%3A%20mustache_template) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/core-packages/p%3A%20mustache_template?label=)](https://github.com/flutter/core-packages/labels/p%3A%20mustache_template) |
| [standard\_message\_codec](./packages/standard_message_codec/) | [![pub package](https://img.shields.io/pub/v/standard_message_codec.svg)](https://pub.dev/packages/standard_message_codec) | [![pub points](https://img.shields.io/pub/points/standard_message_codec)](https://pub.dev/packages/standard_message_codec/score) | [![downloads](https://img.shields.io/pub/dm/standard_message_codec)](https://pub.dev/packages/standard_message_codec/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20standard_message_codec?label=)](https://github.com/flutter/flutter/labels/p%3A%20standard_message_codec) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/core-packages/p%3A%20standard_message_codec?label=)](https://github.com/flutter/core-packages/labels/p%3A%20standard_message_codec) |
| [vector\_math](./packages/vector_math/) | [![pub package](https://img.shields.io/pub/v/vector_math.svg)](https://pub.dev/packages/vector_math) | [![pub points](https://img.shields.io/pub/points/vector_math)](https://pub.dev/packages/vector_math/score) | [![downloads](https://img.shields.io/pub/dm/vector_math)](https://pub.dev/packages/vector_math/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20vector_math?label=)](https://github.com/flutter/flutter/labels/p%3A%20vector_math) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/core-packages/p%3A%20vector_math?label=)](https://github.com/flutter/core-packages/labels/p%3A%20vector_math) |
34 changes: 34 additions & 0 deletions packages/flutter_template_images/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
build/

# Exceptions to above rules.
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
6 changes: 6 additions & 0 deletions packages/flutter_template_images/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Below is a list of people and organizations that have contributed
# to the Flutter project. Names should be added to the list like so:
#
# Name/Organization <email address>

Google Inc.
62 changes: 62 additions & 0 deletions packages/flutter_template_images/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
## NEXT

* Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.

## 5.0.0

* Removes `app_shared` and `skeleton`, which are [no longer used](https://github.com/flutter/flutter/issues/160692).

## 4.3.0

* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
* Creates a copy of `app_shared` named `app` (`app_shared` will no longer be used).

## 4.2.1

* Adds pub topics to package metadata.
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
* Updates minimum SDK version to Flutter 3.0.

## 4.2.0

* Adds iOS template app icons, updated to square icons with no transparency.

## 4.1.1

* Removes empty Dart file.
* Opts in to NNBD (which is a no-op) so it's not flagged by pub.dev.

## 4.1.0

* Updates package description.
* Adds macOS template app icons, updated to Big Sur style.

## 4.0.0

* Move assets common to all app templates to a new `app_shared` directory
(relands changes reverted in 3.0.0).
* Create `skeleton` directory and assets to support new app template
(formerly known as `list_detail_app`).

## 3.0.1

* Fix maskable icon file names
* Fix maskable icon image dimensions

## 3.0.0

* Reverts to the 1.0 layout, since the new app template never landed.
* Added additional icons for winuwp template.

## 2.0.0

* Move assets common to all app templates to a new `app_shared` directory.
* Create `list_detail_app` directory and assets to support new app template.

## 1.0.1

* Moved Windows app template icon for new folder structure.

## 1.0.0

* Windows app template icon.
25 changes: 25 additions & 0 deletions packages/flutter_template_images/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright 2013 The Flutter Authors

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
9 changes: 9 additions & 0 deletions packages/flutter_template_images/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# flutter\_template\_images

Images used by the `flutter_tools` templates.

This project is an internal dependency of the `flutter` tool, and is
not intended to be used directly. It contains images files used in
`flutter create` templates, to avoid checking them into [the main
Flutter repository](https://github.com/flutter/flutter), where they would
permanently increase the checkout size over time if altered.
12 changes: 12 additions & 0 deletions packages/flutter_template_images/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: flutter_template_images
description: Image files for use in flutter_tools templates without adding binary files to flutter/flutter.
repository: https://github.com/flutter/core-packages/tree/main/packages/flutter_template_images
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_template_images%22
version: 5.0.0

environment:
sdk: ^3.10.0

topics:
- assets
- image
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions packages/multicast_dns/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Below is a list of people and organizations that have contributed
# to the Flutter project. Names should be added to the list like so:
#
# Name/Organization <email address>

Google Inc.
The Dartino project authors
80 changes: 80 additions & 0 deletions packages/multicast_dns/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
## NEXT

* Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.

## 0.3.3

* Adds an optional error callback for `MDnsClient::start` to prevent uncaught exceptions.

## 0.3.2+8

* Fixes stack overflows ocurring during the parsing of domain names in MDNS messages.
* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.

## 0.3.2+7

* Optimized Socket Binding: Always bind to 0.0.0.0 for simplicity and efficiency.
* Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.

## 0.3.2+6

* Improves links in README.md.

## 0.3.2+5

* Updates `PendingRequest` to be a `base class` for Dart 3.0 compatibility.
* Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.

## 0.3.2+4

* Adds pub topics to package metadata.
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.

## 0.3.2+3

* Removes use of `runtimeType.toString()`.
* Updates minimum SDK version to Flutter 3.0.

## 0.3.2+2

* Fixes lints warnings.

## 0.3.2+1

* Migrates from `ui.hash*` to `Object.hash*`.

## 0.3.2

* Updates package description.
* Make [MDnsClient.start] idempotent.

## 0.3.1

* Close IPv6 sockets on [MDnsClient.stop].

## 0.3.0+1

* Removed redundant link in README.md file.

## 0.3.0

* Migrate package to null safety.

## 0.2.2
* Fixes parsing of TXT records. Continues parsing on non-utf8 strings.

## 0.2.1
* Fixes the handling of packets containing non-utf8 strings.

## 0.2.0
* Allow configuration of the port and address the mdns query is performed on.

## 0.1.1

* Fixes [flutter/issue/31854](https://github.com/flutter/flutter/issues/31854) where `decodeMDnsResponse` advanced to incorrect code points and ignored some records.

## 0.1.0

* Initial Open Source release.
* Migrates the dartino-sdk's mDNS client to Dart 2.0 and Flutter's analysis rules
* Breaks from original Dartino code, as it does not use native libraries for macOS and overhauls the `ResourceRecord` class.
25 changes: 25 additions & 0 deletions packages/multicast_dns/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright 2013 The Flutter Authors

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13 changes: 13 additions & 0 deletions packages/multicast_dns/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Multicast DNS package

Based on [RFC 6762 Multicast DNS](https://datatracker.ietf.org/doc/html/rfc6762).

[![pub package](https://img.shields.io/pub/v/multicast_dns.svg)](
https://pub.dartlang.org/packages/multicast_dns)

A Dart package to do service discovery over multicast DNS (mDNS), Bonjour, and Avahi.

## Usage

[The example](https://pub.dev/packages/multicast_dns/example) demonstrates how
to use the `MDnsClient` Dart class in your code.
1 change: 1 addition & 0 deletions packages/multicast_dns/dart_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test_on: vm
42 changes: 42 additions & 0 deletions packages/multicast_dns/example/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright 2013 The Flutter Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Example script to illustrate how to use the mdns package to discover the port
// of a Dart observatory over mDNS.

// ignore_for_file: avoid_print

import 'package:multicast_dns/multicast_dns.dart';

Future<void> main() async {
// Parse the command line arguments.

const name = '_dartobservatory._tcp.local';
final client = MDnsClient();
// Start the client with default options.
await client.start();

// Get the PTR record for the service.
await for (final PtrResourceRecord ptr in client.lookup<PtrResourceRecord>(
ResourceRecordQuery.serverPointer(name),
)) {
// Use the domainName from the PTR record to get the SRV record,
// which will have the port and local hostname.
// Note that duplicate messages may come through, especially if any
// other mDNS queries are running elsewhere on the machine.
await for (final SrvResourceRecord srv in client.lookup<SrvResourceRecord>(
ResourceRecordQuery.service(ptr.domainName),
)) {
// Domain name will be something like "io.flutter.example@some-iphone.local._dartobservatory._tcp.local"
final String bundleId = ptr.domainName; //.substring(0, ptr.domainName.indexOf('@'));
print(
'Dart observatory instance found at '
'${srv.target}:${srv.port} for "$bundleId".',
);
}
}
client.stop();

print('Done.');
}
Loading
Loading