Skip to content

Commit cd08f21

Browse files
author
Carlo Pelliccia
committed
gdrive sync wip
1 parent 121d8ad commit cd08f21

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

OpenScienceJournal/whistlepunk_library/src/main/java/com/google/android/apps/forscience/whistlepunk/gdrivesync/GDriveSyncSetupActivity.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ private void onGoogleSignIn() {
199199
final GoogleSignInOptions options = new GoogleSignInOptions.Builder()
200200
.requestId()
201201
.requestEmail()
202-
.requestScopes(GDRIVE_SCOPES[0], GDRIVE_SCOPES[1], GDRIVE_SCOPES[2], GDRIVE_SCOPES[3])
202+
.requestScopes(GDRIVE_SCOPES[0], GDRIVE_SCOPES[1])
203203
.build();
204204
final GoogleSignInClient client = GoogleSignIn.getClient(this, options);
205205
showLoader();
@@ -560,9 +560,7 @@ private void reset() {
560560

561561
private static final Scope[] GDRIVE_SCOPES = {
562562
new Scope("https://www.googleapis.com/auth/drive"),
563-
new Scope("https://www.googleapis.com/auth/drive.appdata"),
564-
new Scope("https://www.googleapis.com/auth/drive.file"),
565-
new Scope("https://www.googleapis.com/auth/drive.metadata")
563+
new Scope("https://www.googleapis.com/auth/drive.appdata")
566564
};
567565

568566
private static final int RC_SIGN_IN = 1000;

0 commit comments

Comments
 (0)