Skip to content

Commit

Permalink
Removing Plus scope from GoogleAPIClient.
Browse files Browse the repository at this point in the history
  • Loading branch information
claywilkinson committed Mar 3, 2016
1 parent 3a4162d commit a57ee97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "21.1.1"
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.google.example.games.snippets"
minSdkVersion 21
targetSdkVersion 21
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.google.example.games.snippets;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.AsyncTask;
Expand All @@ -19,7 +18,6 @@
import com.google.android.gms.games.snapshot.SnapshotMetadata;
import com.google.android.gms.games.snapshot.SnapshotMetadataChange;
import com.google.android.gms.games.snapshot.Snapshots;
import com.google.android.gms.plus.Plus;

import java.io.IOException;
import java.math.BigInteger;
Expand All @@ -37,11 +35,12 @@ public class SavedGamesActivity extends Activity implements
@Override
public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

// Create the Google API Client with access to Plus, Games, and Drive
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN)
.addApi(Games.API).addScope(Games.SCOPE_GAMES)
.addApi(Drive.API).addScope(Drive.SCOPE_APPFOLDER)
.build();
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'com.android.tools.build:gradle:1.5.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit a57ee97

Please sign in to comment.