Skip to content

jnigen-v0.16.0

Choose a tag to compare

@liamappelbe liamappelbe released this 08 Apr 05:29
· 324 commits to main since this release
1509309

0.16.0

  • Breaking Change: All Java wrapper classes have been migrated to extension
    types. The main effects are:
    • No more nullable JType classes, only JType classes, and the JType
      class is simplified.
    • It is no longer necessary to pass around the JType in many cases where it
      used to be required.
  • Add docs about debugging.
  • Add support for Kotlin interfaces with suspend functions. These can now be
    implemented using Dart functions that return a Future.
  • 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 of Future<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.