분류, 패키지 및 저장소 검색

패키지 상세v3.2.0

platform

Dart용 플러그인 가능하고 모킹 가능한 플랫폼 정보 추상화입니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
1610만
좋아요
121
Pub 점수
160

패키지 설치

flutter pub add platform

패키지 개요

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

플랫폼 패키지는 Dart 애플리케이션에서 플랫폼 정보를 검색하기 위한 플러그인 가능하고 모킹 가능한 추상화를 제공합니다. 다양한 플랫폼 간에 일관된 방식으로 운영 체제, 아키텍처 및 환경과 같은 세부 정보에 접근할 수 있게 해줍니다. 플랫폼 감지 기능을 직접적인 시스템 호출로부터 분리함으로써 테스트를 단순화하고 코드의 유지보수성을 높입니다. 테스트 중에 플랫폼별 동작을 시뮬레이션하거나 검증해야 하는 환경에서는 이 패키지가 특히 유용합니다.

사용 사례

  • 플랫폼별 로직 테스트
  • 단위 테스트에서 플랫폼 데이터 모킹
  • 크로스플랫폼 앱 개발
  • 다른 OS 환경 시뮬레이션
  • 일관된 플랫폼 감지 보장
  • 이동 가능한 Dart 라이브러리 만들기

주요 기능

  • 플러그인 가능한 플랫폼 구현
  • 모크 가능한 플랫폼 정보
  • 다중 플랫폼 지원
  • 관심사의 명확한 분리
  • 테스트 프레임워크와의 간편한 통합
  • 플랫폼 간 일관된 API

적합한 대상

  • 크로스플랫폼 앱을 작성하는 Dart 개발자
  • 플랫폼 모크가 필요한 테스트 엔지니어
  • 플랫폼 인식이 필요한 라이브러리
  • 테스트 주도 개발을 실천하는 팀
  • 여러 운영 체제를 대상으로 하는 개발자

고려 사항

  • 사용자 지정 플랫폼 구현을 위해 설정이 필요합니다
  • 간단한 사용 사례에 대해 약간의 오버헤드가 추가될 수 있습니다
  • 테스트 프레임워크와 함께 사용할 때 가장 효과적입니다
  • 생산용 앱에서 런타임 플랫폼 감지에 사용하기 위한 것이 아님
  • 기본 플랫폼 메타데이터로 제한
  • Dart의 핵심 플랫폼 패키지에 의존합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues 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 개

소스 저장소

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

순위