一键导入
native-permission-manager
Safely modifies `AndroidManifest.xml` and `Info.plist` to add native permissions (e.g., Camera, Location, Storage).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Safely modifies `AndroidManifest.xml` and `Info.plist` to add native permissions (e.g., Camera, Location, Storage).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | native-permission-manager |
| description | Safely modifies `AndroidManifest.xml` and `Info.plist` to add native permissions (e.g., Camera, Location, Storage). |
When the user asks to "add camera permission", "enable location access", or similar requests involving native OS capabilities:
Identify the files to edit:
android/app/src/main/AndroidManifest.xmlios/Runner/Info.plistFor Android, inject the required <uses-permission> tag outside the <application> tag.
<uses-permission android:name="android.permission.CAMERA" />For iOS, inject the required key-value pair inside the main <dict> tag. Make sure to provide a descriptive string for why the permission is needed.
<key>NSCameraUsageDescription</key>
<string>This app requires access to the camera to take profile pictures.</string>
Use the replace_string_in_file tool to inject these nodes safely, using surrounding context to ensure proper XML/Plist structure is maintained.
Provide the user with a summary of the files changed.
Sweeps the `assets/` folder and registers them in `pubspec.yaml`, preventing runtime "Asset not found" crashes.
Executes `dart run build_runner build -d` to generate code for packages like Freezed, JSON Serializable, and Riverpod.
Applies Dart fixes and formats Dart code according to standard guidelines.
Generates a standard Domain-Driven Design (DDD) feature-first directory structure inside the `lib` folder.
Configures and runs the `flutter_launcher_icons` package to generate native app icons for iOS and Android.
Cleans up the Flutter and iOS environments to recover from mysterious build errors and cached states.