Skip to content

1.1.1

Choose a tag to compare

@gmpassos gmpassos released this 10 Aug 09:07
· 5 commits to main since this release

First release on pub.dev. Repository, examples and CI — no library changes: the only edit under lib/ since 1.1.0 is a corrected doc comment, so upgrading changes nothing at runtime.

Compatibility

  • SDK floor drops from ^3.12.2 to ^3.10.0. CI runs dart analyze and the full suite on a pinned 3.10.0 SDK as well as on stable, so the floor is exercised rather than asserted.

Examples

  • Three task-oriented examples, none needing a jar or a class path: jdk_apis.dart (SHA-256 via MessageDigest, locale-aware currency via NumberFormat/Locale, a deflate/inflate round trip using a Java array as a buffer Java writes into), collections.dart (ArrayList/HashMap driven with plain Dart values, ending in reusable dartListFrom/dartMapFrom), and performance.dart (holding a JavaClass for its member-id cache, scoping references with localFrame, with timings).
  • example/example.md indexes all five and points at the right one for a given task.
  • The tour in example/main.dart is rewritten against the JDK, so it needs no jar either.
  • The greeter moved to example/greeter/, a standalone project with a path dependency on this package.

Project layout

  • The test suite and the greeter example each own everything they build and run from — test/java/test/build/fixtures.jar, example/greeter/java/example/greeter/build/greeter.jar — with a java_home.sh apiece. They previously shared one java/ directory and one jar.

Repository

  • Apache 2.0 LICENSE.
  • GitHub Actions CI: format, analyze and dart doc; the full suite and every example on Linux and macOS, since locating and loading libjvm is the per-platform part of this package.
  • Coverage on both platforms, uploaded to Codecov (95%).

Fixed

  • The package's own usage snippet told readers to load build/fixtures.jar, a filename that never existed in the repository.

Full changelog: https://github.com/gmpassos/java_interop/blob/main/CHANGELOG.md