dotnet/android-libraries

INFO: How to use Play Integrity in .NET MAUI with .NET 9.0

Opened this issue · 2 comments

Auto72 commented

Android framework version

net9.0-android

Affected platform version

Visual Studio 2022 ver. 17.12.1 | .NET 9.0.100

Description

I have a .NET MAUI with .NET 8.0 project and I use Play Integrity with the following references:

Image

xamarin/GooglePlayServicesComponents#881

If I convert the .NET MAUI project from .NET 8.0 to .NET 9.0, these references are not valid anymore and the GooglePlayServicesComponents library has been deprecated.

https://github.com/xamarin/GooglePlayServicesComponents

So the question is: how do I reference the new android-libraries in a .NET MAUI project with .NET 9.0, to be able to use Play Integrity?

Thanks.

Relevant log output

jpobst commented

If I convert the .NET MAUI project from .NET 8.0 to .NET 9.0, these references are not valid anymore and the GooglePlayServicesComponents library has been deprecated.

As https://github.com/xamarin/GooglePlayServicesComponents?tab=readme-ov-file#deprecated-repository says, no GooglePlayServicesComponents libraries have been deprecated. They are the exact same packages just shipped out of this repository instead of the old one.

Auto72 commented

The Update process from .NET 8.0 to .NET 9.0 of my .NET MAUI App removes the following NuGet libraries:

Image

that is the "GooglePlayServicesComponents" with its external dependencies, used to be able to compile in .NET 8.0.
So, now that I am in .NET 9,0, what NuGet packages I have to use in place of "GooglePlayServicesComponents".
This is what I can't understand.

The "android-libraries" has no NuGet package.
I see its read-me says:

This repository binds over 600 Android libraries that are published to NuGet.org. The full package list can be found in config.json.

But I can't figure out which one to use.
Can you help me on this, please?

Thanks.