native
native copied to clipboard
Dart packages related to FFI and native assets bundling.
```dart Future getIcon(String packageName) async { final JArray jArray = await getIconFromAndroid(packageName); // There is a thread safety issue with the following line of code, return jArray.getRange(0, jArray.length).buffer.asUint8List(); } ```...
- Thanks for your contribution! Please replace this text with a description of what this PR is changing or adding and why, list any relevant issues, and review the contribution...
This is half the solution to protocol implementation. It adds a user visible class in package:objective_c called `DartProxy`, which is based on `NSProxy`. It stores a map from selector to...
My initial design for [implementing ObjC protocols from Dart](https://github.com/dart-lang/native/issues/1040) will only support instance methods. This is the use case most Dart programmers will be familiar with, analogous to implementing the...
Failing run: * https://github.com/dart-lang/native/actions/runs/9094025881/job/24994214663 Latest successful run: * https://github.com/dart-lang/native/actions/runs/9002742091/job/24731730603 ``` Run dart pub global run coverage:test_with_coverage dart pub global run coverage:test_with_coverage shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'" env: DART_HOME: C:\hostedtoolcache\windows\dart\[3](https://github.com/dart-lang/native/actions/runs/9094025881/job/24994214663#step:33:3).4.0\x64...
We're not currently testing the Android examples. The normal tests need to be run on Android emulator as well.
Created a swift2objc "package" project in Xcode and added "struct syntax" structs to AST. https://github.com/dart-lang/native/issues/1143
> I think there is a case to be made to completely remove maven support from jnigen's main workflow. We might instead add some helper scripts like `dart run jnigen:maven_init`...
``` NSMutableArray? arrayWithContentsOfFile:(NSString path) NSArray? arrayWithContentsOfFile:(NSString path) ``` There are a few cases like this and it's one remaining source of "duplicate method" log spam. The important thing is that...