Skip to content

Commit

Permalink
[google_sign_in] Make the Delegate non-final to allow overriding (flu…
Browse files Browse the repository at this point in the history
…tter#2660)

Make the Delegate non-final to allow overriding. IDelegate is not enough for v2 embedding for GoogleSignIn and 1p auth plugin because activity and activity binding have to be involved. If we keep Delegate as a field for those plugins, make Delegate non-final so that it's easier for tests to override.
  • Loading branch information
zhenqiu1101 authored and jorgefspereira committed Oct 10, 2020
1 parent c333221 commit 365efb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/google_sign_in/google_sign_in/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.4.2

* Android: make the Delegate non-final to allow overriding.

## 4.4.1

* Android: Move `GoogleSignInWrapper` to a separate class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public void init(
* completed (either successfully or in error). This class provides no synchronization constructs
* to guarantee such behavior; callers are responsible for providing such guarantees.
*/
public static final class Delegate implements IDelegate, PluginRegistry.ActivityResultListener {
public static class Delegate implements IDelegate, PluginRegistry.ActivityResultListener {
private static final int REQUEST_CODE_SIGNIN = 53293;
private static final int REQUEST_CODE_RECOVER_AUTH = 53294;
@VisibleForTesting static final int REQUEST_CODE_REQUEST_SCOPE = 53295;
Expand Down
2 changes: 1 addition & 1 deletion packages/google_sign_in/google_sign_in/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: google_sign_in
description: Flutter plugin for Google Sign-In, a secure authentication system
for signing in with a Google account on Android and iOS.
homepage: https://github.com/flutter/plugins/tree/master/packages/google_sign_in/google_sign_in
version: 4.4.1
version: 4.4.2

flutter:
plugin:
Expand Down

0 comments on commit 365efb4

Please sign in to comment.