Repository: flutter
Issue: [google_sign_in_android] Remove deprecated API usages in most recent version of `play-services-auth`
Labels: platform-android,p: google_sign_in,package,P2,team-android,triaged-android

In order to update the `google_sign_in_android` plugin to use the latest version of `play-services-auth` (currently. 21.2.0), we will need to remove the usage of deprecated APIs. See [dependabot PR](https://github.com/flutter/packages/pull/6808), [example of failing build](https://ci.chromium.org/ui/p/flutter/builders/try/Linux_android%20android_device_tests_shard_1%20master/7941/overview), and warnings thrown due to the deprecations as of `play-services-auth` 21.2.0:

```
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java:18: warning: [deprecation] GoogleSignIn in com.google.android.gms.auth.api.signin has been deprecated
import com.google.android.gms.auth.api.signin.GoogleSignIn;
                                             ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java:20: warning: [deprecation] GoogleSignInClient in com.google.android.gms.auth.api.signin has been deprecated
import com.google.android.gms.auth.api.signin.GoogleSignInClient;
                                             ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java:22: warning: [deprecation] GoogleSignInStatusCodes in com.google.android.gms.auth.api.signin has been deprecated
import com.google.android.gms.auth.api.signin.GoogleSignInStatusCodes;
                                             ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java:9: warning: [deprecation] GoogleSignIn in com.google.android.gms.auth.api.signin has been deprecated
import com.google.android.gms.auth.api.signin.GoogleSignIn;
                                             ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java:11: warning: [deprecation] GoogleSignInClient in com.google.android.gms.auth.api.signin has been deprecated
import com.google.android.gms.auth.api.signin.GoogleSignInClient;
                                             ^
error: warnings found and -Werror specified
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java:358: warning: [deprecation] GoogleSignInClient in com.google.android.gms.auth.api.signin has been deprecated
    private GoogleSignInClient signInClient;
            ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java:623: warning: [deprecation] GoogleSignIn in com.google.android.gms.auth.api.signin has been deprecated
      return GoogleSignIn.getLastSignedInAccount(context) != null;
             ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java:707: warning: [deprecation] GoogleSignInStatusCodes in com.google.android.gms.auth.api.signin has been deprecated
        case GoogleSignInStatusCodes.SIGN_IN_CANCELLED:
             ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java:713: warning: [deprecation] GoogleSignInStatusCodes in com.google.android.gms.auth.api.signin has been deprecated
        case GoogleSignInStatusCodes.SIGN_IN_CURRENTLY_IN_PROGRESS:
             ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java:714: warning: [deprecation] GoogleSignInStatusCodes in com.google.android.gms.auth.api.signin has been deprecated
        case GoogleSignInStatusCodes.SIGN_IN_FAILED:
             ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java:915: warning: [deprecation] GoogleSignIn in com.google.android.gms.auth.api.signin has been deprecated
            onSignInResult(GoogleSignIn.getSignedInAccountFromIntent(data));
                           ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java:26: warning: [deprecation] GoogleSignInClient in com.google.android.gms.auth.api.signin has been deprecated
  GoogleSignInClient getClient(Context context, GoogleSignInOptions options) {
  ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java:27: warning: [deprecation] GoogleSignIn in com.google.android.gms.auth.api.signin has been deprecated
    return GoogleSignIn.getClient(context, options);
           ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java:31: warning: [deprecation] GoogleSignIn in com.google.android.gms.auth.api.signin has been deprecated
    return GoogleSignIn.getLastSignedInAccount(context);
           ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java:35: warning: [deprecation] GoogleSignIn in com.google.android.gms.auth.api.signin has been deprecated
    return GoogleSignIn.hasPermissions(account, scope);
           ^
/b/s/w/ir/x/w/packages/packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java:40: warning: [deprecation] GoogleSignIn in com.google.android.gms.auth.api.signin has been deprecated
    GoogleSignIn.requestPermissions(activity, requestCode, account, scopes);
    ^
```