Daco Harkes

Results 574 comments of Daco Harkes

> @dcharkes I wonder if you could give me an example of use cases for this feature? https://github.com/dart-lang/sdk/issues/50565 Any use case in which you want to call native code and...

> @dcharkes does this also support compiling code then linking to third-party/precompiled static libraries (and by extension, specifying the platform-specific path to these libraries in `build.dart`)? Currently the only constraint...

Simply `Process.run`, or use a helper package that uses `Process.run` under the hood. The helper package [`native_toolchain_c`](https://github.com/dart-lang/native/tree/main/pkgs/native_toolchain_c) wraps the C compilers. It doesn't have an API yet to invoke the...

> @dcharkes, is there any timeline or estimation for when native assets will move out of the experimental flag? Unfortunately I cannot give an estimation. We're working hard on getting...

> Hi all! I've been working on a little utility to help make it easier to build native assets with bazel and incorporate them into flutter or dart applications. Currently,...

> Great work, looking at this and the dart version for library access in tests. Curious if this is meant to replace the current CMake driven approach for native library...

@robert-at-pieces In Flutter, experiments only work on the main/master channel. (P.S. Dart is also moving to a world where experiments are only available on dev releases.)

> > Sorry if I got the wrong end of the stick but [@gaaclarke](https://github.com/gaaclarke) is what you are suggesting covered by [#47718](https://github.com/dart-lang/sdk/issues/47718) ? or would libs into a Flutter exe...

> > In older versions it's available behind an experimental flag on the master channel: `flutter config --enable-native-assets`. > > @dcharkes Just to confirm, does this the `flutter config --enable-native-assets`...

Yes, build hooks and code assets support in Flutter is available in stable since 3.38 and Dart 3.10: `flutter create --template=package_ffi [package name]`. Ongoing work for tree-shaking and other features...