パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.1.0

jni_flutter

DartからFlutter Android専用APIにアクセスするためのライブラリ。

Android
30日間ダウンロード
458万
いいね数
17
Pub ポイント
140

パッケージをインストール

flutter pub add jni_flutter

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

jni_flutter パッケージは、Flutter アプリケーション内の Dart コードが JNI(Java Native Interface)を介して Android 固有のネイティブ API と直接やり取りできるようにします。Android の Java/Kotlin メソッドを呼び出し、標準の Flutter プラグインでは公開されていないプラットフォーム固有の機能にアクセスするためのブリッジを提供します。カスタムハードウェアの統合やシステムレベルの操作など、Android システムコンポーネントへの低レベルアクセスが必要な高度なユースケースにおいて特に役立ちます。このパッケージは Dart Native エコシステムの一部であり、Android のネイティブ環境との緊密な統合が必要な開発者向けに設計されています。

用途

  • Flutter で利用できない Android システム API にアクセスする
  • カスタムネイティブAndroidライブラリの統合
  • パフォーマンスが重要な Android 固有の機能の実装
  • プラットフォームネイティブ機能でFlutterアプリを拡張する
  • 専用ハードウェア統合の開発

主な機能

  • Dartからの直接JNIアクセス
  • Android 固有のネイティブメソッド呼び出しをサポート
  • Dart Nativeエコシステムの一部
  • Android システムの低レベルな操作を可能にする
  • 既存の Android ネイティブコードとの統合を容易にする

適している対象

  • 高度なFlutter開発者
  • Android プラットフォーム専門家
  • ネイティブなAndroidアクセスを必要とするプロジェクト
  • カスタム Android ライブラリを使用する開発者
  • 深くシステム統合が必要なアプリ

注意事項

  • Androidネイティブ開発の知識が必要です
  • Android プラットフォームのみ対応
  • アプリの複雑さと保守性を増加させる可能性がある
  • 初心者には向いていません
  • プラットフォーム固有のバグや互換性の問題の可能性

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

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.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

ランキング