You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jmelvin (via GitHub)" <gi...@apache.org> on 2023/09/10 15:04:36 UTC

[GitHub] [cordova-plugin-media-capture] jmelvin commented on pull request #262: feat(android)!: support API 33+ permissions

jmelvin commented on PR #262:
URL: https://github.com/apache/cordova-plugin-media-capture/pull/262#issuecomment-1712837773

   @PabbleDabble I also ran into this exact scenario.  We include cordova-plugin-camera which requests WRITE_EXTERNAL_STORAGE permissions... without the maxSdkVersion qualifier.  AndroidManifest.xml includes the following entries after plugin installs...
   
   cordova-plugin-camera
   >     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
   
   cordova-plugin-media-capture
   >     <uses-permission android:maxSdkVersion="32" android:name="android.permission.READ_EXTERNAL_STORAGE" />
   >     <uses-permission android:maxSdkVersion="32" android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
   
   The maxSdkVersion qualifier foils the manifest merge process and the build throws up an error...
   
   > Task :app:processReleaseMainManifest FAILED
   /Users/jmelvin/dev/sizzlescene/repos/mobile/platforms/android/app/src/main/AndroidManifest.xml:47:5-108 Error:
           Element uses-permission#android.permission.WRITE_EXTERNAL_STORAGE at AndroidManifest.xml:47:5-108 duplicated with element declared at AndroidManifest.xml:26:5-81
   
   From a pending PR, the temporary workaround is to manually remove the maxSdkVersion qualifier before the cordova build.  See SO post I made before seeing this comment...
   
   https://stackoverflow.com/questions/77074389/duplicate-write-external-storage-permissions-in-androidmanifest-using-cordova-12
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org