Google Play游戏中,“保存的游戏"已弃用吗? [英] Google Play games, 'Saved games' deprecated?

查看:187
本文介绍了Google Play游戏中,“保存的游戏"已弃用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否已弃用Google Play游戏服务的保存的游戏"功能?

Is Google Play games services, 'Saved Games' feature deprecated?

在其网站上,已保存的游戏"未列为已弃用.
https://developers.google.com/games/services/android/savedgames

On their website Saved Games is not listed as deprecated.
https://developers.google.com/games/services/android/savedgames

但是,当在代码中指定Drive范围时,Android Studio会提供代码提示,说明该功能已弃用,并且在Google Drive API网站上指出该功能已弃用.
https://developers.google.com/drive/android

However when specifying the Drive scope in code, Android studio gives code hints saying the feature is deprecated and on the Google Drive API website, it states this feature is deprecated.
https://developers.google.com/drive/android

网站建议迁移到Drive REST API?
并且该网站建议迁移到Firebase Cloud Firestore.

The website advices to migrate to the Drive REST API?
and that website advices to migrate to Firebase Cloud Firestore.

强烈建议需要应用程序数据存储的客户端迁移到非Drive解决方案,例如Cloud Firestore.

Clients requiring app data storage are strongly encouraged to migrate to a non-Drive solution such as Cloud Firestore.

任何清晰度都将不胜感激.

Any clarity would be appreciated.

推荐答案

不推荐使用Drive API.我猜保存的游戏内部实现现在使用Drive REST API.

The Drive API was deprecated. I guess saved games internal implementation uses the Drive REST API now.

Drive.SCOPE_APPFOLDER替换为new Scope(Scopes.DRIVE_APPFOLDER),以清除棉绒"警告.如果您检查内部结构,就会发现它们是相同的.

Replace Drive.SCOPE_APPFOLDER with new Scope(Scopes.DRIVE_APPFOLDER) to clear the Lint warning. If you'll check the internals you'll see they are the same.

这篇关于Google Play游戏中,“保存的游戏"已弃用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆