native
native copied to clipboard
Dart packages related to FFI and native assets bundling.
We should consider making build/link APIs use `String`s to represent filepaths instead of `Uri`s. Using `Uri`s indicates that they can be arbitrary uris (e.g. http uris) when in fact they...
I was attempting to migrate the following Obj-C code to Dart: ```objc [item addObserver:observer forKeyPath:@"loadedTimeRanges" options:NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew context:NULL]; ``` Where the options are defined by: ```objc typedef NS_OPTIONS(NSUInteger, NSKeyValueObservingOptions)...
Weak references are an extremely common pattern in Objective-C for avoiding retain cycles or global retention, and it's not at all clear to me how to avoid leaks in the...
When `Foo extends Bar`, we're renaming the methods of `Foo` with the same descriptor to use the same name as the ones in `Bar`. This is not always correct. Take:...
Apple seems to move around it's framework headers. Currently, on my machine, they have paths like: `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSDictionary.h` previously they looked like: `/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSDictionary.h` It would be nice to have a magic...
- [X] I’ve reviewed the contributor guide and applied the relevant portions to this PR. Contribution guidelines: - See our [contributor guide](https://github.com/dart-lang/.github/blob/main/CONTRIBUTING.md) for general expectations for PRs. - Larger or...
- [X] I’ve reviewed the contributor guide and applied the relevant portions to this PR. Contribution guidelines: - See our [contributor guide](https://github.com/dart-lang/.github/blob/main/CONTRIBUTING.md) for general expectations for PRs. - Larger or...
Currently, any packages in `dev_dependencies` with native assets will not have their native assets built for `flutter run`, `flutter build`, etc. This WAI. However, in `flutter test` and `dart test`...
When building native assets using the native_toolchain_cmake package, I find myself having to delete the .dart_tool directory often as the builder does not pick up on file changes in the...
The code generated by JNIgen can be thousands of lines long, resulting in millions of tokens, which is far too much for an LLM to handle effectively due to the...