Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Fix templates that use <LibraryProjectZip> #652

@jpobst

Description

@jpobst

Context: dotnet/maui#8233

We currently use <LibraryProjectZip> to specify which Java library we want to bind. Unfortunately, using this alone does not produce valid NuGet packages for .NET 6. These packages are missing the .jar/.aar library that should sit next to the .dll. (This library is no longer embedded in the .dll in .NET 6.)

We need to switch to using <AndroidLibrary> instead, which will do the correct thing for both .NET 6 and classic XA.

It looks like we use <LibraryProjectZip> in 22 templates:
https://github.com/xamarin/GooglePlayServicesComponents/search?q=LibraryProjectZip

Once changed, verify that the .aar is in the NuGet. ex:

image

This is likely causing many issues like:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions