这是indexloc提供的服务,不要输入任何密码
Skip to content

Interop: Objective C & Swift #49673

@mit-mit

Description

@mit-mit

Dart currently supports interop with C code via dart:ffi. We should investigate if we can provide similar interop with Objective C and Swift code.

This would be a supplement to Flutter's plugins, and would allow for calling into Objective C / Swift directly from Dart code, also from pure-Dart apps (such as CLI apps).

  • Objective C interop, binary and source code: Has experimental support, see the example
  • Swift interop, with source code access: Has experimental support, see the example
  • Swift interop, binary/without source code access:
    TODO

If you have any feedback and suggestions about this project, please comment below.

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.type-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions