Android application type
Android for .NET (net6.0-android, etc.)
Affected platform version
.NET 7
Description
Context: dotnet/maui#7038
We found some Telerik and/or other vendor libraries would fail due to this code in SkiaSharp:
https://github.com/mono/SkiaSharp/blob/4a687a87b86f127ccc23116ee410dcb5df8fca63/source/SkiaSharp.Views/SkiaSharp.Views.Android/SKCanvasView.cs#L48-L61
So if we don't finish #6427 for .NET 7, we could consider:
- Fix
SKCanvasView so it doesn't use a Styleable int[].
- Give an error message at build time if the
AndroidLinkResources linker step encounters a int[]
- Try turning on
AndroidLinkResources=true by default for MAUI projects
Steps to Reproduce
- Use
SKCanvasView in a project
- Build with
-c Release -p:AndroidLinkResources=true
Did you find any workaround?
Don't use $(AndroidLinkResources)
Relevant log output
No response
Android application type
Android for .NET (net6.0-android, etc.)
Affected platform version
.NET 7
Description
Context: dotnet/maui#7038
We found some Telerik and/or other vendor libraries would fail due to this code in SkiaSharp:
https://github.com/mono/SkiaSharp/blob/4a687a87b86f127ccc23116ee410dcb5df8fca63/source/SkiaSharp.Views/SkiaSharp.Views.Android/SKCanvasView.cs#L48-L61
So if we don't finish #6427 for .NET 7, we could consider:
SKCanvasViewso it doesn't use aStyleable int[].AndroidLinkResourceslinker step encounters aint[]AndroidLinkResources=trueby default for MAUI projectsSteps to Reproduce
SKCanvasViewin a project-c Release -p:AndroidLinkResources=trueDid you find any workaround?
Don't use
$(AndroidLinkResources)Relevant log output
No response