Skip to content

Make $(AndroidLinkResources) able to be the default for MAUI projects #7194

@jonathanpeppers

Description

@jonathanpeppers

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:

  1. Fix SKCanvasView so it doesn't use a Styleable int[].
  2. Give an error message at build time if the AndroidLinkResources linker step encounters a int[]
  3. Try turning on AndroidLinkResources=true by default for MAUI projects

Steps to Reproduce

  1. Use SKCanvasView in a project
  2. Build with -c Release -p:AndroidLinkResources=true

Did you find any workaround?

Don't use $(AndroidLinkResources)

Relevant log output

No response

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.enhancementProposed change to current functionality.

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions