Flutter build with C / C ++ code - example?

I use the hello_services gradle construct to create a service in Java, but I would really like to use the C / C ++ code in my application, originally on Android. I tried integrating some C code without success (I ended up messing up the flutter assembly).

I am looking for an example or information on how to add this. Ideally, I would call Dart / Flutter flutterView.sendToFlutter () from the C code, but JNI works fine.

I suppose I can add a gradle subproject, any tips / pointers appreciated.

+5
source share
1 answer

We currently have no example of this. To simplify interaction with C ++, we would like to provide a C API for the HostMessages system, which we do not have.

You sent an error to request one ( https://github.com/flutter/flutter/issues/7053 ) that I updated with this request.

+2
source

Source: https://habr.com/ru/post/1260533/


All Articles