Plugin uses-permission Tag Deduplication Feature
In the latest versions of Cordova plugins, especially cordova-plugin-media-capture
and cordova-plugin-camera
, changes have been made to the android:maxSdkVersion
attribute. This has increased the potential for duplication errors in the AndroidManifest.xml
settings when combining multiple plugins.
Specifically, the following build error was occurring: (The example below is a case where the WRITE_EXTERNAL_STORAGE
permission is duplicated.)
Feature Details
To resolve this issue, we have released a feature that detects duplicates of the uses-permission
tag and automatically unifies them.
How to Use
Open your project.
Click on "Build" in the header menu, and select "Configure Build Environment" from the list.
Move to the Android environment settings page and look for the "Remove Duplicate Permissions" option.
Enable the "Remove Duplicate Permissions" option and save the settings.
With this, the function to automatically resolve duplicates of the uses-permission
tag will be enabled for the next build.
Last updated