The VM work is done. Once the decommissioning DBC work lands the FFI will work on iOS automatically. It also will already work in AOT (release/profile builds).
--
You received this message because you are subscribed to the Google Groups "Dart FFI" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dart-ffi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dart-ffi/73f124cf-bb7a-4542-b785-b21fc56a18f3%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dart-ffi/CAFuxYw6FzdrCNRnvtCCyFfcgDS1CuzCESMS%2B0mbM5%2BzeuO80Yg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Dart FFI" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dart-ffi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dart-ffi/6a7d8ec3-3036-46de-9281-30f40719e369%40googlegroups.com.
Hi, it's removed in current stable channel, but re-added in dev and/or master channel (I'm working on another project using master channel, and it's working as of 20 mins ago :D)
On Sun, Sep 15, 2019, 20:53 Vladimir Djokic <vladimir...@gmail.com> wrote:
Hi TruongSinh,--I can't run your example I am getting "Error: Method not found: 'DynamicLibrary.executable'."it seems that in flutter version 1.9, method executable is removed?Do you have some other example ?Thanks
You received this message because you are subscribed to the Google Groups "Dart FFI" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dart...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dart-ffi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dart-ffi/286091ef-3db4-4c74-95b1-93ff5e954ea3%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dart-ffi/CAKjqF1McnwwqczGVZ4ip7xmVoSNfUnMBV5%2BrihYy8cuVgxRbpQ%40mail.gmail.com.
extern C directive is not required.
Is the code posted anywhere?An example would be helpful
int nativeadd(int a, int b){
return a + b;
}Hi Craig,The full sample code is not posted anywhere, but the instructions should work "as-is" -- there is nothing hidden or missing.You don't need to put "extern C" in a C library, only C++ -- it indicates that C++ name mangling should be applied to that symbol.Regards,Samir
On Fri, Sep 20, 2019 at 7:31 PM Craig Jarman <craig....@gmail.com> wrote:
Thanks Samir,I’ve yet to give it a go, will do soon.One question. For a C-library, I take it that theextern C directive is not required.Is the code posted anywhere?An example would be helpful
I've reworked our documentation into a walkthrough: https://github.com/flutter/flutter/wiki/Binding-to-native-code-via-FFIDoes this suit your needs?
To view this discussion on the web visit https://groups.google.com/d/msgid/dart-ffi/286091ef-3db4-4c74-95b1-93ff5e954ea3%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Dart FFI" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dart...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dart-ffi/CAKjqF1McnwwqczGVZ4ip7xmVoSNfUnMBV5%2BrihYy8cuVgxRbpQ%40mail.gmail.com.
I've reworked our documentation into a walkthrough: https://github.com/flutter/flutter/wiki/Binding-to-native-code-via-FFIDoes this suit your needs?
To view this discussion on the web visit https://groups.google.com/d/msgid/dart-ffi/286091ef-3db4-4c74-95b1-93ff5e954ea3%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Dart FFI" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dart...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dart-ffi/CAKjqF1McnwwqczGVZ4ip7xmVoSNfUnMBV5%2BrihYy8cuVgxRbpQ%40mail.gmail.com.
Apart from that, could be possible to use CMake file also for iOS? could be a huge improvement both platforms could be base on same builder.
To unsubscribe from this group and stop receiving emails from it, send an email to dart-ffi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dart-ffi/0bc2ba0d-e4cb-4cd2-a29f-0514bfeb6da5%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dart-ffi/0bc2ba0d-e4cb-4cd2-a29f-0514bfeb6da5%40googlegroups.com.
I think it would be useful to take a big step back from the specific question about CocoaPods and CMake. If I'm understanding the context of the thread correctly, the basic request here is for clear documentation for best practices, and ideally a preconfigured template in the Flutter tool, for how to incorporate a library into a Flutter project via FFI.If that's correct, I would say that I don't think the current 'plugin' template is well suited to that, and trying to shoehorn FFI into it is unlikely to be the right approach long term. I would suggest filing a Flutter bug about this (framed in terms of the high-level request above) if there isn't one already, where designs can be discussed and evaluated. The existing dependency build management approaches (e.g., CocoaPods) may or may not be the right tools for that.-StuartOn Tue, Sep 24, 2019 at 10:35 AM Amir Hardon <ami...@google.com> wrote: