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

패키지 상세v0.0.14

permission_config

Android/iOS 권한을 자동으로 추가하고 권한 핸들러 로직을 생성하는 Flutter CLI 플러그인입니다.

AndroidiOS
30일 다운로드
30
좋아요
37
Pub 점수
150

패키지 설치

flutter pub add permission_config

패키지 개요

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

Android 및 iOS 권한 추가를 자동화하고 해당 권한 핸들러 코드를 생성하는 플러터 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 개

소스 저장소

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

아직 데이터가 없습니다.