@onekeyfe/react-native-cloud-fs 2.6.2 → 2.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -191,8 +191,8 @@ public class RNCloudFsModule extends ReactContextBaseJavaModule implements Googl
191
191
  })
192
192
  .addOnFailureListener(exception -> {
193
193
  clearPendingOperations();
194
- Log.e(TAG, "Unable to query files: " + exception.getCause().getMessage());
195
194
  try {
195
+ Log.e(TAG, "Unable to query files: " + exception.getCause().getMessage());
196
196
  UserRecoverableAuthIOException e = (UserRecoverableAuthIOException) exception;
197
197
  mPendingPromise = promise;
198
198
  mPendingOptions = options;
@@ -393,7 +393,8 @@ public class RNCloudFsModule extends ReactContextBaseJavaModule implements Googl
393
393
  GoogleSignInOptions signInOptions =
394
394
  new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
395
395
  .requestEmail()
396
- .requestScopes(new Scope(DriveScopes.DRIVE_FILE))
396
+ // .requestScopes(new Scope(DriveScopes.DRIVE_FILE))
397
+ .requestScopes(new Scope(DriveScopes.DRIVE_APPDATA))
397
398
  .build();
398
399
  GoogleSignInClient client = GoogleSignIn.getClient(this.reactContext, signInOptions);
399
400
 
@@ -426,7 +427,8 @@ public class RNCloudFsModule extends ReactContextBaseJavaModule implements Googl
426
427
  GoogleSignInOptions signInOptions =
427
428
  new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
428
429
  .requestEmail()
429
- .requestScopes(new Scope(DriveScopes.DRIVE_FILE))
430
+ // .requestScopes(new Scope(DriveScopes.DRIVE_FILE))
431
+ .requestScopes(new Scope(DriveScopes.DRIVE_APPDATA))
430
432
  .build();
431
433
  GoogleSignInClient client = GoogleSignIn.getClient(this.reactContext, signInOptions);
432
434
  mDriveServiceHelper = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-cloud-fs",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {