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

패키지 상세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 플러그인에서 노출되지 않은 플랫폼 특화 기능에 접근하는 데 사용되는 다리를 제공합니다. 특히 커스텀 하드웨어 통합이나 시스템 수준의 운영을 요구하는 고급 사용 사례에 유용합니다. 이 패키지는 Dart Native 생태계의 일부이며, Android의 네이티브 환경과 밀접하게 통합이 필요한 개발자를 위한 것입니다.

사용 사례

  • Flutter에서 사용할 수 없는 Android 시스템 API에 액세스하기
  • 사용자 정의 네이티브 안드로이드 라이브러리 통합
  • 성능이 중요한 Android 전용 기능 구현
  • 플랫폼 네이티브 기능을 사용하여 Flutter 앱 확장하기
  • 전용 하드웨어 통합 개발

주요 기능

  • Dart에서 JNI에 직접 액세스
  • Android 전용 네이티브 메서드 호출을 지원합니다
  • 다트 네이티브 생태계의 일부
  • 저수준 Android 시스템 상호작용을 가능하게 함
  • 기존 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 개

소스 저장소

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

순위