Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interop: Java/Kotlin #49674

Open
mit-mit opened this issue Aug 16, 2022 · 4 comments
Open

Interop: Java/Kotlin #49674

mit-mit opened this issue Aug 16, 2022 · 4 comments
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. type-enhancement A request for a change that isn't a bug

Comments

@mit-mit
Copy link
Member

mit-mit commented Aug 16, 2022

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

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

@mit-mit mit-mit added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. type-enhancement A request for a change that isn't a bug labels Aug 16, 2022
@a-siva
Copy link
Contributor

a-siva commented Aug 22, 2022

//cc @liamappelbe

@Aurora-zls
Copy link

Is there any progress on this matter,will support in next dart release?

@julemand101
Copy link
Contributor

@Aurora-zls I think the work is ongoing in this repository: https://github.com/dart-lang/jnigen

MaryaBelanger added a commit to dart-lang/site-www that referenced this issue Feb 3, 2023
This a bare minimum introduction to the topic, with plans to expand on
these docs later as `jnigen` gets more feature complete.

#### References
- https://github.com/dart-lang/jnigen
- dart-lang/sdk#49674

---------

Co-authored-by: Parker Lougheed <[email protected]>
Co-authored-by: Marya <[email protected]>
@moshe5745
Copy link

moshe5745 commented Mar 20, 2023

Wow, I think it will be a killer feature to flutter competitors.
This will simplify the plugin development. No need to know Kotlin, Swift, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants