パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.0.14

permission_config

Android/iOSの権限を自動で追加し、権限ハンドラのロジックを生成するFlutter CLIプラグインです。

AndroidiOS
30日間ダウンロード
30
いいね数
37
Pub ポイント
150

パッケージをインストール

flutter pub add permission_config

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

AndroidおよびiOSの権限を自動的に追加し、対応する権限ハンドラーコードを生成するFlutter CLIプラグインです。手動での設定を減らすことでアプリ開発をスムーズにし、プラットフォーム固有のマニフェストファイルに適切な権限宣言を保証するとともに、権限の要求と確認用のボイラープレートコードを生成します。アプリデプロイ時に一般的な権限関連エラーを回避し、セットアップ時間を最小限に抑えたい開発者に最適です。

用途

  • 新しいFlutterプロジェクト用の権限設定を自動化する
  • AndroidManifest.xml および Info.plist における手動構成の削減
  • 実行時チェック用の権限要求ロジックを生成する
  • 一貫した権限処理によるアプリ開発の加速
  • プラットフォーム固有の権限要件に準拠することを保証する

主な機能

  • CLI駆動型の権限設定
  • 権限ハンドラコードの自動生成
  • AndroidおよびiOSプラットフォームの両方をサポート
  • 既存のFlutterプロジェクトとの統合
  • 最小限の手動介入が必要

適している対象

  • Flutterの初心者が権限管理を学んでいます
  • プロジェクト間で権限設定を標準化しようとしているチーム
  • 複数の権限を必要とするアプリを開発する開発者
  • モバイル権限に関する厳格なコンプライアンス要件を満たすプロジェクト
  • セキュアな権限処理による迅速なプロトタイピング

注意事項

  • Flutter CLI に精通している必要があります
  • 自動生成後にカスタマイズが必要になる場合があります
  • 実行時権限マネージャそのものではない
  • 外部の permission_handler パッケージに依存しています
  • プロジェクト開発の初期段階で最も効果的に使用される

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

🚀 Permission Config

A Flutter CLI plugin that automatically adds Android/iOS permissions (Camera, Microphone, Location) to your Flutter project and generates a ready-to-use runtime permission handler file.
Say goodbye to manually editing AndroidManifest.xml and Info.plist — this tool does it all for you!


✨ Features

  • ✅ ✅ Supports permissions for Camera, Microphone, Location, Storage, Bluetooth, Sensors, Contacts, Calendar, Photos, Notifications, and Speech Recognition
  • ⚙️ Automatically injects required Android and iOS permission entries
  • 📁 Generates a pre-written permission_handler.dart file under lib/Utils/
  • 📦 Adds permission_handler dependency automatically in your pubspec.yaml
  • 💾 Creates backup files (.bak) before modifying platform configs
  • 📝 Uses logger for clean, informative CLI output

📦 Installation

Activate the plugin globally with Dart pub:

dart pub global activate permission_config

🔧 Usage

Run this command inside your Flutter project root:

permission_config <permission> [optional-ios-message]
Supported permissions:
Permission Aliases Description
camera - Access to the device camera
microphone mic Access to the microphone
location - Access to device location services (fine & coarse)
storage - Read/write external storage (Android only)
bluetooth - Access Bluetooth and BLE devices
sensors - Access body sensors and motion data
contacts - Access the user's contact list
calendar - Access calendar events and reminders
photos - Access the photo library (iOS only)
notifications - Access to send and display notifications (iOS only)
speech - Use speech recognition services (iOS only)
all - Adds all supported permissions above automatically
Examples:
permission_config all
permission_config camera
permission_config mic "This app needs mic access for voice chat."
permission_config location

💾 Backup Files

Before applying changes, backups are created:

  • AndroidManifest.xml.bak
  • Info.plist.bak

🙌 Contribution

Found a bug or want to add more permissions?
Feel free to open an issue or submit a pull request! Your contributions are welcome. 💙


👤 Contributors

カテゴリー

依存関係

依存関係一覧 3 件

ソースリポジトリ

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

データはまだありません。