native
native copied to clipboard
Dart packages related to FFI and native assets bundling.
Explaining how the Java annotations determine the nullability, how to add other custom annotations as nullable and non-nullable annotations in the config, etc.
# Summary Adding JNI to a Flutter project makes the app slow at startup and might cause ANR # Steps to reproduce 1. Create a flutter app. 2. Add JNI...
We currently support generating Kotlin `suspend fun`s as Dart async methods. We need to be able to implement a Kotlin interface that contains a `suspend fun` by passing an async...
Currently a class `Foo implements Bar` gets generated as `Foo extends JObject`, we should generate it as `Foo extends JObject implements Bar`.
This seems to be completely out of scope from what JNIgen wants to be: a Dart bindings generator for Java, since we would have to generate Java bindings for Dart....
Type variable: an instance of generic `T` in some type Type parameter: the declaration of generic `T` in the class or method. Basically the origin. Currently we cautiously generate the...
## Background We use a concept called type classes to create Java objects in generics. Say we have a `JList`, its `operator []` should return a `T`, but how can...
Followup from https://github.com/getsentry/sentry-dart/pull/2670/files#r1952391869 The generated code looks like this: ```dart /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release]...
Unify the error handling for JNIgen, so it always uses exceptions instead of `log.fatal` so that it also works well if someone wants to call it programmatically instead of through...