native
native copied to clipboard
Dart packages related to FFI and native assets bundling.
`NSDate.timeIntervalSinceReferenceDate` is declared as both a type property and an instance property
While cleaning up the "duplicate method" error spam, I found that there are two properties on `NSDate` called `timeIntervalSinceReferenceDate`. One is an [instance property](https://developer.apple.com/documentation/foundation/nsdate/1417376-timeintervalsincereferencedate?language=objc) and the other is a [type...
`ns_data_test.dart` causes some sort of seg faults crash loop when using `NSData.dataWithBytesNoCopy_length_`. I'm switching to `NSData.dataWithBytes_length_` for now, which fixes the crash but is slower. [Logs](https://github.com/dart-lang/native/actions/runs/8863501530/job/24337646756). I noticed the crash...
Context: * https://github.com/flutter/flutter/issues/148044 This would enable `build` and `link` hooks to fail if they cannot produce native code assets with that iOS SDK version. Standalone Dart packages do not specify...
Requires #827 to be merged. Extend API by providing a `CLinker`, supporting development only on linux for now. Other platforms to be added in future PRs. --- - [x] I’ve...
This should be possible with a single static piece of native code that can live in `package:objective_c`, so we won't have to generate different native code for each protocol.
We should consider introducing a package to help calling the Rust compiler from Dart code. Things this package could contain: * [ ] A mapping from `native_assets_cli`s `Target` and `IOSSdk`...
It would be great to have a constructor that creates an NSDate object from a Dart DateTime object to make it easier to work with Apple APIs that leverage date...
This is from the coverage step of the workflow on a PR: https://coveralls.io/builds/67179524 This is the overall result you get if you click on a coverage badge: https://coveralls.io/builds/67179061 Note that...
To address https://github.com/dart-lang/native/issues/681, we should to generate `ResourceIdentifier`s on all JNIgen generated methods. ```dart class PDDocument extends jni.JObject { @ResourceIdentifier('jnigen') jni.JObject getDocumentCatalog(); @ResourceIdentifier('jnigen') static PDDocument load( jni.JObject file, ); }...
For some of the routines, we can generate both the normal and the leaf versions, and call each one depending on the situation. For example `SetArrayRegion` could be fast depending...