カテゴリー・パッケージ・リポジトリを検索

パッケージ詳細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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

ランキング