Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding for com.google.android.gms.games.snapshot #800

Open
pekspro opened this issue Sep 11, 2023 · 5 comments
Open

Binding for com.google.android.gms.games.snapshot #800

pekspro opened this issue Sep 11, 2023 · 5 comments

Comments

@pekspro
Copy link

pekspro commented Sep 11, 2023

I'm working with a game, and I have been able to use leaderboards. But I also would like to add support for saved games:

https://developers.google.com/games/services/android/savedgames

But as I understand it there is no binding for com.google.android.gms.games.snapshot. Can this be added? Please, please, please :-)

@moljac
Copy link
Member

moljac commented Sep 19, 2023

@pekspro

Thanks for the feedback.

Seems like this artifact is not in the official repo:

https://maven.google.com/web/index.html

I found it here:

https://mvnrepository.com/artifact/com.google.android.gms/play-services-games/23.1.0

I cannot guarantee that bindings will be done in some reasonable time.

@stuartmilleruk
Copy link

I think the binding is in the official repo as a part of Play Services Games v2, in:

https://maven.google.com/web/index.html#com.google.android.gms:play-services-games-v2:19.0.0

At least, looking in the javadoc files there's documentation for it. Are the bindings automatically generated from this or do they need to be manually written? ( currently assessing the feasibility of adding some of this myself .. but still trying to figure out how things are put together in the Xamarin/.NET bindings )

@moljac
Copy link
Member

moljac commented Dec 27, 2023

@stuartmilleruk

Thanks for the feedback

How about:

https://www.nuget.org/packages/Xamarin.GooglePlayServices.Games.V2

??

@stuartmilleruk
Copy link

@moljac thanks... sorry, this thread was mentioned in my bug #771 ( PlayersClient classes are missing in the xamarin gpg plugin which makes it impossible to track player changes ) and I noticed the binding that @pekspro needed was in the v2 API as you say.

@pekspro does the V2 API have all the bits you're looking for?

@pekspro
Copy link
Author

pekspro commented Dec 29, 2023

@stuartmilleruk, I have tried the latest version of Xamarin.GooglePlayServices.Games.V2, and there is no PlayGames.GetSnapshotClient() that I think is needed :-(

As a side note, this nuget package works in .NET 7 projects, in .NET 8 compiling seems to fail :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants