Pakete, Repositories und App-Kategorien suchen

Paketdetailsv1.1.0

jni_flutter

Eine Bibliothek zum Zugriff auf Flutter Android-spezifische APIs aus Dart.

Android
30-Tage-Downloads
4,6 Mio.
Likes
17
Pub-Punkte
140

Paket installieren

flutter pub add jni_flutter

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Das jni_flutter-Paket ermöglicht es Dart-Code in Flutter-Anwendungen, über JNI (Java Native Interface) direkt mit Android-spezifischen native APIs zu interagieren. Es bietet eine Brücke zum Aufrufen von Android-Java/Kotlin-Methoden und zum Zugriff auf plattformspezifische Funktionen, die durch Standard-Flutter-Plugins nicht verfügbar gemacht werden. Dies ist besonders nützlich für anspruchsvolle Anwendungsfälle, die einen Low-Level-Zugriff auf Android-Systemkomponenten erfordern, beispielsweise bei der Integration von benutzerdefiniertem Hardware oder tiefgreifenden Systemoperationen. Das Paket ist Teil des Dart Native Ökosystems und wurde für Entwickler konzipiert, die eine enge Integration mit der nativen Android-Umgebung benötigen.

Anwendungsfälle

  • Zugriff auf Android-System-APIs, die in Flutter nicht verfügbar sind
  • Integration benutzerdefinierter native Android-Bibliotheken
  • Implementierung leistungskritischer, android-spezifischer Funktionen
  • Erweiterung von Flutter-Anwendungen mit plattformnative Funktionen
  • Spezialisierte Hardware-Integrationen entwickeln

Hauptmerkmale

  • Direkter JNI-Zugriff aus Dart
  • Unterstützt androidspezifische Native-Methodenaufrufe
  • Teil des Dart Native Ökosystems
  • Ermöglicht niedrigstufigen Android-Systemzugriff
  • Ermöglicht die Integration mit bestehendem Android-Native-Code

Geeignet für

  • Fortgeschrittene Flutter-Entwickler
  • Android-Plattform-Spezialisten
  • Projekte, die native Android-Zugriffe erfordern
  • Entwickler, die mit benutzerdefinierten Android-Bibliotheken arbeiten
  • Apps mit tiefer Systemintegration

Hinweise

  • Kenntnisse der Android-Native-Entwicklung erforderlich
  • Nur für die Android-Plattform verfügbar
  • Kann die Komplexität und Wartung der Anwendung erhöhen
  • Nicht für Anfänger geeignet
  • Mögliche plattformspezifische Fehler und Kompatibilitätsprobleme

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

Coverage Status

Overview

This repository is home to Dart packages related to FFI and native assets building and bundling.

Documentation

See the doc directory for more documentation.

Packages

Package Description Issues Version
code_assets This package contains the Dart API for code assets in hook/build.dart and hook/link.dart. issues pub package
data_assets This package contains the Dart API for data assets in hook/build.dart and hook/link.dart. issues pub package
ffi Utilities for working with Foreign Function Interface (FFI) code. issues pub package
ffigen Generator for FFI bindings, using LibClang to parse C, Objective-C, and Swift files. issues pub package
hooks This package contains the API for hook/build.dart and hook/link.dart. issues pub package
hooks_runner This package is the backend that invokes hook/build.dart and hook/link.dart from Dart and Flutter. issues pub package
jni A library to access JNI from Dart and Flutter that acts as a support library for package:jnigen. issues pub package
jni_flutter A library to access Flutter Android specific APIs from Dart. issues pub package
jni_util A library to access Flutter Android specific APIs from Dart. issues pub package
jnigen A Dart bindings generator for Java and Kotlin that uses JNI under the hood to interop with Java virtual machine. issues pub package
native_toolchain_c A library to invoke the native C compiler installed on the host machine. issues pub package
objective_c A library to access Objective C from Flutter that acts as a support library for package:ffigen. issues pub package
record_use Dart API to access @RecordUse() recorded usages in link hooks. issues pub package
swift2objc A tool for generating bindings that allow interop between Dart and Swift code. issues pub package
swiftgen A tool for generating bindings that allow interop between Dart and Swift code. issues pub package

External packages

Packages not on this repo but also related to FFI and native assets. ❤️

Package Description Version
native_toolchain_cmake A library to invoke CMake for Dart Native Assets. pub package
native_toolchain_go A library to invoke the native Go compiler installed on the host machine. pub package
native_toolchain_ninja A library to invoke Ninja for Dart Native Assets. pub package
native_toolchain_rust A library to build and bundle Rust code for Dart Native Assets. pub package
native_toolchain_zig A library to build and bundle Zig code for Dart Native Assets. pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

Kategorien

Abhängigkeiten

Abhängigkeiten 1 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden

Ranglisten