cordova-plugin-jc-googledrive
cordova-plugin-jc-googledrive copied to clipboard
Update for Google Play Services 2017-11-06 changes
trafficstars
The latest Google Play Services update includes several API deprecates that jc-googledrive relies upon. These older APIs should be moved away from as they are now deprecated.
Please note that to use getDriveResourceClient or getDriveClient a GoogleSignIn object must be provided and may not be null. I don't know what shared state the current implementation draws from but the new API will require an explicit login check.
- Updated the Drive API for the new GoogleApi-based clients, which automatically manage connections to services and require less boilerplate code to use:
- Added the DriveClient class and the Drive.getDriveClient() methods. DriveClient provides the entry point for general interactions with the Drive API.
- Added the DriveResourceClient class and the Drive.getDriveResourceClient() methods. DriveResourceClient provides the entry point for API methods that interact with a DriveResource (i.e. a DriveFile or a DriveFolder).
- Added CreateFileActivityOptions and OpenFileActivityOptions objects that can be passed to the new DriveClient.newCreateFileActivityIntentSender() and DriveClient.newOpenFileActivityIntentSender() methods to create the respective file pickers.
- Deprecated GoogleApiClient API methods accessed via DriveApi, DrivePreferencesApi, DriveContents, DriveResource, DriveFolder, and DriveFile.
— https://developers.google.com/android/guides/releases#november_6_2017_-_version_1160