shinyorg / shiny

.NET Framework for Backgrounding & Device Hardware Services (iOS, Android, & Catalyst)
https://shinylib.net
MIT License
1.43k stars 227 forks source link

[Bug]: The Setup Muai essentials media picker option has a bug at building time #1482

Closed mdelgadov closed 2 months ago

mdelgadov commented 2 months ago

Component/Nuget

Other

What operating system(s) are effected?

Version(s) of Operation Systems

android 33 but happens at building time and it may also fail in IOs but can't be sure.

Hosting Model

Steps To Reproduce

  1. Using the Shiny Maui template, in the configuration screen, set this option.

Then build it for Android (I can't build it for IOs)

image

You will receive the error:

Severity Code Description Project File Line Suppression State Details Error (active) AMM0000 Element uses-permission#android.permission.WRITE_EXTERNAL_STORAGE at AndroidManifest.xml:18:3-106 duplicated with element declared at AndroidManifest.xml:15:3-79 C:\Users\mdelg\source\repos\ShinyMaui3\ShinyMaui3\obj\Debug\net8.0-android\AndroidManifest.xml Error: Validation failed, exiting ShinyMaui3 (net8.0-android) C:\Users\mdelg\source\repos\ShinyMaui3\ShinyMaui3\obj\Debug\net8.0-android\AndroidManifest.xml 18

Same happened when I tried to use the kitchen sink sample in the Shiny repo, but it's too big and complex to be sure... this seems much more clear.

Expected Behavior

To compile

Actual Behavior

does not build

Exception or Log output

The build fails.

Code Sample

not apply

Code of Conduct

aritchie commented 2 months ago

Thank you for the report. It is will be fixed with 2.11 of the templates