Google Drive Android API は死ぬし、その結果 Google Play Games Services の Saved Games も死ぬ。等価な代替手段はない。金払って Firebase(Cloud Firestore とか)使え
Google Drive Android API が今年(2019年)12月6日に死ぬ(Google Drive Android API Deprecation on Dec 6, 2019)
https://developers.google.com/drive/android/deprecation
Android で良い感じに動く Google Drive の機能が死にます。これは Android で良い感じに動く機能であり、その代替先として Android に限らない、どこでも動く汎用的な REST API があります。
https://developers.google.com/drive/api/v3/about-sdk
これを使えば、単なる Google Drive と連携してるアプリは生き長らえることができるので、ちゃんと移行していきましょう。
さて、それとは別に Migration の項目をちゃんと確認していきます。
Accessing App Data
Support for storing and syncing in the app data folder will likely be removed from Drive in the future. Clients requiring app data storage are strongly encouraged to migrate to a non-Drive solution such as Cloud Firestore.
(雑な訳) Google Drive におけるapp data folder への保存と同期のサポートは将来的に削除されます。(Google Drive の)app data storage 機能を使っているものは Cloud Firestore のような Google Drive ではないものへ移行するのを 強く オススメします。
というわけで、 app data folder の機能は将来的に消えるみたいです……と、ここでいきなり Google Play Games Services の Saved Games を見てみましょう。
https://developers.google.com/games/services/android/savedgames
なるほどなるほど SnapshotsClient.open() を使ってスナップショットから開く、と言うことか……
public Task> open (SnapshotMetadata metadata)
Required Scopes: SCOPE_GAMES_LITE and SCOPE_APPFOLDER.
SCOPE_APPFOLDER......? さっき出てきた app data folder じゃねーか!!! つまり Saved Games の機能も will likely be removed from Drive in the future って事じゃん!!!
ついでに言うと
https://developers.google.com/android/reference/com/google/android/gms/drive/Drive
This class is deprecated.
The Google Drive Android API is deprecated and will be turned down on December 6, 2019. See the migration guide for instructions on migrating to the REST API.
com.google.android.gms.drive.Drive クラスも死ぬし、その static final フィールドである
public static final Scope com.google.android.gms.drive.Drive.SCOPE_APPFOLDER も死ぬのでは……? どうなってんの Google Play Games Services...... これ、どこまで信用できるの? 迂闊に使ってるとまたハシゴ外されたりしない……?
結論(再掲)
Google Drive Android API は死ぬ し、その結果 Google Play mk sports(https://www.sportsmk.com) Games Services の Saved Games も死ぬ 。等価な代替手段はない。金払って Firebase(Cloud Firestore とか)使え。
個人的な感想
Google Play (Game) Services 周りの機能、昔っからずっと不安定というか、隙あらば消えていくので AWS あたりのマイクロサービス組み合わせてやってくのが一番寿命が長いというか、メンテフリーで維持できる気がします。