ProbeAdvertiser example: pin a bonsoir version that builds for Android and use the current API

未关闭
#379 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
52/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
冷清
技术栈
flutter

调研方向

Start with the ProbeAdvertiser example in the docs and the repository’s Flutter fixture, then check bonsoir’s documentation for the iOS requirements and verify newer bonsoir_android versions against a newer Android SDK. Update the version pin and API usage if a newer version builds; document the reason for pinning 6.0.2 and the iOS requirements until then.

由索引模型根据 Issue 内容生成。

描述

documentation

Problem

The ProbeAdvertiser example in our docs used bonsoir: ^5.1.10 and await broadcast.ready. The current API is await broadcast.initialize(); await broadcast.start();.

The latest bonsoir (7.1.5, whose Android plugin is bonsoir_android 7.1.3) did not build for Android in our check on 2026-10-11: BonsoirService.kt uses NsdServiceInfo.hostname, which was unresolved against the Android SDK platform 36 that was installed (Unresolved reference 'hostname'). bonsoir 6.0.2 builds for iOS (profile, no codesign) and Android (profile) with the same code.

Done / proposed

  • The docs and the repository's Flutter fixture now use bonsoir: 6.0.2 and initialize() (PR for the physical-device fixture).
  • Re-check newer bonsoir_android versions against a newer Android SDK platform and relax the pin when one builds; until then say in the docs why 6.0.2.
  • Note the iOS requirements from bonsoir's own docs: deployment target 13.0 or later, and on iOS 14+ NSLocalNetworkUsageDescription plus the service type in NSBonjourServices.

Scheduled for the next minor release.

主要语言
Go
星标
6
派生
3
平均合并
6 小时 28 分钟
30 天内合并 PR
362

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AlphaWaveSystems/flutter-probe 的其他 Issue

查看 AlphaWaveSystems/flutter-probe 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。