permission_guard Pro
Permission diff from compiled APK/IPA artifacts. Catches library-injected permissions that source XML diffing misses. Adds the permission-guard command to the base monorepo_toolkit.
Version: 1.0.0
Variables
| Variable | Type | Default | Description |
|---|---|---|---|
| appName | string | MyApp | The name of your application |
| isForMonorepo | boolean | true | Whether this is being generated as part of a monorepo |
Usage
Interactive
bash
archipelago generate permission_guardNon-interactive (CI)
bash
archipelago generate permission_guard --config my_config.jsonConfig Template
json
{
"@appName": "The name of your application",
"appName": "MyApp",
"@isForMonorepo": "Whether this is being generated as part of a monorepo",
"isForMonorepo": true
}Generated Structure
devtools/
└── scripts/
└── permission_guard/
├── lib/
│ ├── permission_guard.dart
│ └── src/
│ ├── commands/
│ │ ├── android_command.dart
│ │ ├── ios_command.dart
│ │ ├── permission_guard_command.dart
│ │ └── update_baseline_command.dart
│ ├── models/
│ │ └── permission_guard_config.dart
│ └── services/
│ ├── android_permission_service.dart
│ ├── ios_permission_service.dart
│ └── permission_guard_service.dart
└── pubspec.yaml
permission_baseline/
├── android.txt # committed baseline
└── ios.txt # committed baselineThe post_gen hook registers the permission-guard command in monorepo_toolkit's command runner and scaffolds the permission_baseline/ directory with empty baseline files at the workspace root.