搜尋套件、儲存庫與 APP 分類

套件詳情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 項

原始碼儲存庫

使用此套件的專案

所在榜單