패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.1.2

jni

Dart 및 Flutter에서 JNI에 액세스하기 위한 라이브러리로, package:jnigen의 지원 라이브러리 역할을 합니다.

AndroidWindowsLinux
30일 다운로드
1050만
좋아요
64
Pub 점수
160

패키지 설치

flutter pub add jni

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

jni 패키지는 Flutter 및 Dart에서 Java 네이티브 인터페이스(JNI)에 접근할 수 있는 Dart 라이브러리를 제공하여 원격 Android 코드와의 원활한 상호 운용성을 가능하게 합니다. jnigen의 기초 지원 라이브러리로서 C 또는 C++로 작성된 네이티브 코드를 Dart 애플리케이션과 쉽게 통합할 수 있도록 합니다. Android, Windows, Linux 플랫폼을 대상으로 설계되어 Dart에서 네이티브 함수를 직접 호출할 수 있게 하여 성능 중심 작업 및 플랫폼 전용 기능에 대한 접근을 촉진합니다. 이 패키지는 Dart Native 생태계의 일부이며, 효율적인 크로스플랫폼 네이티브 통합을 장려합니다.

사용 사례

  • Dart에서 네이티브 C/C++ 함수 호출하기
  • Android 네이티브 라이브러리 통합
  • 고성능 플러터 플러그인 빌드
  • 플랫폼 고유 코드로 Flutter 앱 확장하기
  • JNI를 통한 저수준 시스템 접근 활성화

주요 기능

  • 다트에서 직접 JNI 액세스
  • Android, Windows 및 Linux 지원
  • 코드 생성을 위한 jnigen과의 통합
  • 저수준 네이티브 함수 호출
  • 크로스 플랫폼 네이티브 상호 운용성

적합한 대상

  • 네이티브 플러그인을 개발하는 개발자
  • 고성능 네이티브 호출을 필요로 하는 팀
  • 안드로이드에서 C/C++ 라이브러리를 사용하는 프로젝트
  • 직접 JNI 상호작용이 필요한 Flutter 앱
  • 네이티브 코드를 사용하는 고급 플러터 개발자

고려 사항

  • JNI 및 네이티브 개발에 대한 지식이 필요합니다
  • JNI를 지원하는 플랫폼에 한정
  • 초보자에게 추천하지 않습니다
  • 앱의 복잡성을 증가시킬 수 있음
  • 완전한 기능을 위해 jnigen에 의존

원본 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.

카테고리

의존성

의존성 목록 8 개

소스 저장소

이 패키지를 사용하는 프로젝트