Repository navigation
jnigen-v0.16.0
·
324 commits
to main
since this release
0.16.0
- Breaking Change: All Java wrapper classes have been migrated to extension
types. The main effects are:- No more nullable
JTypeclasses, onlyJTypeclasses, and theJType
class is simplified. - It is no longer necessary to pass around the
JTypein many cases where it
used to be required.
- No more nullable
- Add docs about debugging.
- Add support for Kotlin interfaces with suspend functions. These can now be
implemented using Dart functions that return aFuture. - Namespace primitive types to avoid collisions with generated API names, eg
bool. - Kotlin suspend functions with no result (a return type of
Unit) now return
Future<void>in Dart instead ofFuture<JObject>. - Improve error message for unsupported Java class file versions in summary
generation. - Generated extension types now implement their Java interfaces.
- Instance members of generated extension types have been moved to extension
methods. - Breaking Change: Class methods like getFoo, isFoo, and setFoo are now
getters and setters in Dart. - Add compile time version checks to verify consistency of package:jni's
versions vs JNIgen's generated code.