CapacitorManifestUpdater is a Node.js utility for updating the AndroidManifest.xml
file in Capacitor projects. It automates the process of adding specific permissions, making it easier and more reliable compared to manual editing.
npm install capacitor-manifest-updater
Run the script using npx
and provide the path to your AndroidManifest.xml
and the permissions you want to add:
npx capacitor-manifest-updater path/to/AndroidManifest.xml [PERMISSIONS...]
Example:
npx capacitor-manifest-updater ./android/app/src/main/AndroidManifest.xml android.permission.ACCESS_FINE_LOCATION android.permission.ACCESS_COARSE_LOCATION
- Easily add permissions to
AndroidManifest.xml
. - Supports multiple permissions.
- Command-line interface for simplicity.
Contributions to improve CapacitorManifestUpdater are welcome. Please submit pull requests or issues to our GitHub repository.
CapacitorManifestUpdater is released under the MIT License. See the LICENSE file for more details.