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

패키지 상세v2.2.0

hooks

`hook/build.dart` 및 `hook/link.dart`를 위한 JSON 기반 프로토콜용 Dart API를 포함하는 라이브러리입니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
1520만
좋아요
42
Pub 점수
160

패키지 설치

flutter pub add hooks

패키지 개요

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

hooks 패키지는 `hook/build.dart` 및 `hook/link.dart`에서 사용하는 JSON 기반 프로토콜과 상호작용하기 위한 Dart API를 제공하여 Dart와 Python, Rust 등의 다른 언어 간의 원활한 통합을 가능하게 합니다. 명령줄 도구 및 네이티브 코드 상호운용성을 촉진하며, 특히 다중 언어 빌드 및 링크 프로세스가 필요한 환경에서 유용합니다. 이 패키지는 Dart Native 생태계의 일부로서 Android, iOS, macOS, Windows, Linux에서의 다중 플랫폼 개발을 지원합니다.

사용 사례

  • 다국어 빌드 통합
  • 네이티브 코드 링크
  • 언어 상호 운용성을 위한 CLI 도구
  • 다중 플랫폼 네이티브 확장
  • 외부 도구를 사용한 빌드 자동화

주요 기능

  • JSON 기반 프로토콜 지원
  • 빌드/링크 프로세스용 Dart API
  • Python 및 Rust 통합을 지원합니다
  • 다중 플랫폼 호환성
  • Dart Native 생태계의 일부

적합한 대상

  • 네이티브 확장 기능을 개발하는 개발자
  • 툴체인 통합업체
  • 다국어 프로젝트 유지보수자
  • CLI 도구 개발자
  • 다중 플랫폼 빌드 시스템

고려 사항

  • Dart 네이티브 프로토콜에 대한 이해 필요
  • 주로 고급 사용 사례를 위한 것
  • 빌드 시 작업에 제한됨
  • 런타임 애플리케이션 로직용이 아님
  • Dart 네이티브 인프라스트럭처에 의존

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

카테고리

의존성

의존성 목록 6 개

소스 저장소

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