Repository navigation
feat(pigeon): SAF 迁移到 channel 模式(异步 host) - #86
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #70. Closes #85.
概要
SAF 从手写 MethodChannel 迁移到 Pigeon channel 模式(Android-only,
@asyncCallback),旧top.stillmisty.molia/saf通道保留 fallback。tool/pigeon/saf.dart(stat / listTreeBegin / listTreeNext / listTreeClose / readHead / readRange;SafDocumentMessage/SafTreeEntryMessage/SafTreeBatchMessage)SafHost(stat / 会话 begin-next-close / readHead / readRange / 错误码 / 分批 / 隐藏 / 深度语义);旧 channel 与 PigeonSafApiImpl共用同一实例;I/O 继续走 executor,平台线程只做校验与派发MainActivity注册SafApi.setUp,cleanUpFlutterEngine统一SafHost.dispose();旧通道保留saf_adapter.dart封装 Pigeon transport;pigeon_saf_bridge.dart映射SafBridge;首批之前 transport 失败才回退旧桥,中途失败不重扫;createSafBridge()工厂验证
flutter analyze --no-pub:0 issueflutter test --no-pub:3565 通过docs check:OKbuild_runner不删生成物flutter build apk --debug/--release成功;release 安装启动无ClassNotFoundException/NoSuchMethodError,dex 保留SafHost/SafApiImplMethodChannelSafBridgefallback限制
release.yml;旧通道保留。--no-pub的 GeneratedPluginRegistrant 缓存问题与本改动无关;发布 workflow 不带--no-pub。