jni 0.14.1 copy "jni: ^0.14.1" to clipboard
jni: ^0.14.1 copied to clipboard

A library to access JNI from Dart and Flutter that acts as a support library for package:jnigen.

40
likes
160/ 160
pub points
61.2k
downloads

We analyzed this package 5 days ago, and awarded it 160 pub points (of a possible 160):

Partially passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Partially passed check 10/10 points: Provide a valid pubspec.yaml

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/dart-lang/native/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ajni was unreachable. Make sure that the website is reachable via HEAD requests.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

437 out of 1819 API elements (24.0 %) have documentation comments.

Some symbols that are missing documentation: _internal.Int32.Int32.new, _internal.JObjType, _internal.JObjType.JObjType.new, _internal.JObjType.isNullable, _internal.JObjType.jClass.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ Windows

  • ✓ Linux

These platforms are not supported:

Package does not support platform `iOS`.

Because:

  • package:jni/jni.dart that declares support for platforms: Android, Windows, Linux.
Package does not support platform `macOS`.

Because:

  • package:jni/jni.dart that declares support for platforms: Android, Windows, Linux.
Package does not support platform `Web`.

Because:

  • package:jni/jni.dart that declares support for platforms: Android, Windows, Linux.

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:jni/jni.dart that imports:
  • package:jni/src/util/util.dart that imports:
  • package:jni/src/util/jset.dart that imports:
  • package:jni/src/util/jiterator.dart that imports:
  • package:jni/src/types.dart that imports:
  • package:jni/src/third_party/generated_bindings.dart that imports:
  • package:jni/src/third_party/jni_bindings_generated.dart that imports:
  • dart:ffi

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Passed report section
Pass static analysis
50 / 50trigger folding of the section

Passed check 50/50 points: code has no errors, warnings, lints, or formatting issues

Passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

Passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
args ^2.5.0 2.7.0 2.7.0
ffi ^2.1.3 2.1.4 2.1.4
meta ^1.15.0 1.16.0 1.16.0
package_config ^2.1.0 2.2.0 2.2.0
path ^1.9.0 1.9.1 1.9.1
plugin_platform_interface ^2.1.8 2.1.8 2.1.8

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.20, Flutter 3.29.2, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
Jul 1Jul 29Aug 26Sep 23Oct 21Nov 18Dec 16Jan 13Feb 10Mar 1002k4k6k8k10k12k14k16k18k>=0.0.0-0 <1.0.0
40
likes
160
points
61.2k
downloads

Publisher

verified publisherlabs.dart.dev

Weekly Downloads

2024.09.16 - 2025.03.31

A library to access JNI from Dart and Flutter that acts as a support library for package:jnigen.

Repository (GitHub)
View/report issues
Contributing

Topics

#interop #ffi #java #kotlin #jni

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

args, ffi, meta, package_config, path, plugin_platform_interface

More

Packages that depend on jni