Align iOS bridge result handling with Android#188
Merged
Conversation
Contributor
Author
|
本次修改
用于在 iOS bridge 层显式表达同步返回、异步返回和无返回值三种语义。
|
dos1in
reviewed
Apr 3, 2026
…andlers Align iOS bridge result handling with Android's explicit result type pattern. Each handler now returns DMPSyncResult, DMPAsyncResult, or DMPNoneResult instead of Any?, removing runtime type guessing in normalizeBridgeResult.
8fd0db3 to
e5b0db6
Compare
lbb00
added a commit
to EchoTechFE/dimina
that referenced
this pull request
Apr 7, 2026
* Align iOS bridge result handling with Android * refactor(ios): use explicit DMPAPIResult return type for all bridge handlers Align iOS bridge result handling with Android's explicit result type pattern. Each handler now returns DMPSyncResult, DMPAsyncResult, or DMPNoneResult instead of Any?, removing runtime type guessing in normalizeBridgeResult.
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.
对齐 iOS 侧 bridge 调用在同步/异步返回语义上的处理方式,使其更接近 Android 当前的实现,并修复 createInnerAudioContext 这类需要同步返回对象的 custom API 在 iOS 上无法正常返回的问题。