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

Native in Native, how call C code ? ¯\_(ツ)_/¯ #14201

Closed
blogdron opened this issue Jan 21, 2018 · 4 comments
Closed

Native in Native, how call C code ? ¯\_(ツ)_/¯ #14201

blogdron opened this issue Jan 21, 2018 · 4 comments

Comments

@blogdron
Copy link

blogdron commented Jan 21, 2018

I want to use a library written in C in my project, can I call functions from there?

for example how call this in flutter/dart

char * hello()
{
    return "hello";
};

if i compile this for arm lib.so/lib.a ?

@blogdron blogdron changed the title Native in Native, how call C code ? Native in Native, how call C code ? ¯\_(ツ)_/¯ Jan 21, 2018
@felagund18
Copy link

I think it would be Dart <-> Platform channels <-> JNI call

https://flutter.io/platform-channels/
https://developer.android.com/studio/projects/add-native-code.html

@1l0
Copy link

1l0 commented Jan 21, 2018

#7053

@blogdron
Copy link
Author

blogdron commented Jan 22, 2018

th all (◕‿◕) o( ❛ᴗ❛ )o @1l0 @felagund18

@github-actions
Copy link

github-actions bot commented Sep 4, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants