native
native copied to clipboard
Dart packages related to FFI and native assets bundling.
For example, we could have a function called `get` but it's currently changed to `get0` not to clash with the `get` keyword in the getters. Even more of these could...
Thoroughly test renaming logic: - [ ] What happens if we have both `get` and a `get0`? - [ ] What happens if we have import prefix names like `ffi`...
For example, if we have three methods: `overloaded`, `overloaded` and `overloaded1`. The second `overloaded` gets converted to `overloaded1` but `overloaded1` stays the same.
For example, we're importing `'package:jni' as jni`, and so we can not use `jni.xyz` inside a method that is also called `jni`. Although rare, java method names can contain underscores,...
- [ ] `T getSomeValue()` that returns a private value `T someValue` with the same type and doesn't get any arguments can be converted to a Dart's getter `T get...
# Note All of this could be used for `package:jni` itself, as it already contains a lot of hand-written code for `List`, `Map`, `ByteBuffer`, … I plan to add support...
- [ ] All dylib loading errors are not `HelperNotFoundException` More error message related issues will be added here.
> https://github.com/mahesh-hegde/android_jni proof of concept using current PR dart-lang/jnigen#110 _Originally posted by @mahesh-hegde in https://github.com/dart-lang/native/issues/731 If we want to start making the generated bindings available (as very experimental) we need...
Running JNIgen on `android.database.sqlite` produces non-nullable arguments. ```dart /// from: static public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(java.io.File file, android.database.sqlite.SQLiteDatabase.CursorFactory factory) /// The returned object must be deleted after use, by calling the `delete`...