native
native copied to clipboard
Dart packages related to FFI and native assets bundling.
This will be possible once native assets doesn't require an experimental flag. - [x] Remove all the flutter infra and deps from package:objective_c - [x] Add build.dart infra instead -...
Pulling some learnings from https://github.com/dart-lang/native/pull/977. > My preference would be to let a higher level of build system handle checking the file times, like Bazel or [package:build](https://pub.dev/packages/build) or [native assets](https://pub.dev/packages/native_assets_cli)....
For tree-shaking we want to generate `ResourceIdentifier` annotations. For C: * https://github.com/dart-lang/native/issues/1085 For JNIgen: * https://github.com/dart-lang/native/issues/1098 Probably for Objective-C (and Swift?) we could or should do something similar. The idea...
I don't have a Mac OS setup. Therefore unable to build dartjni for macos on desktop. It's build system is different (podspec), and it may take more effort than porting...
**Update 2025-10-20** Some concerns have been addressed, but possibly not all For tree-shaking code and data assets, the link hook needs to get the information from AOT-compiled Dart code about...
**For v1.1, we need to be convinced that we don't need to break the API later.** **For v1.0, we need to be convinced that we don't need to break the...
`ObjCBlock.listener` lets ObjC code invoke Dart callbacks that live in other isolates. If they pass an object arg, it's possible that it gets refcounted and destroyed before the Dart callback...
We should consider making `@Native`s automatically be mapped to `@ResourceIdentifier`s. `@Native`s have a `symbol` and `assetId` (both possibly inferred). https://api.dart.dev/stable/3.3.3/dart-ffi/Native-class.html `@ResourceIdentifier`s only have a `Object? metadata`. https://pub.dev/documentation/meta/latest/meta/ResourceIdentifier/ResourceIdentifier.html A possible mapping...
This needs to be supported downstream: * https://github.com/dart-lang/sdk/issues/55377 * https://github.com/flutter/flutter/issues/146270 After we support adding assets in link hooks, we should update the doc comments on `link`. The current workaround is...