Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit aaaa81c

Browse files
authored
[google_sign_in] Suppress deprecation warnings (#5049)
1 parent f4ca732 commit aaaa81c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/google_sign_in/google_sign_in_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 5.2.8
2+
3+
* Suppresses `deprecation` warnings (for using Android V1 embedding).
4+
15
## 5.2.7
26

37
* Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors

packages/google_sign_in/google_sign_in_android/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public void initInstance(
7676
}
7777

7878
@VisibleForTesting
79+
@SuppressWarnings("deprecation")
7980
public void setUpRegistrar(PluginRegistry.Registrar registrar) {
8081
delegate.setUpRegistrar(registrar);
8182
}
@@ -267,6 +268,7 @@ public static class Delegate implements IDelegate, PluginRegistry.ActivityResult
267268

268269
private final Context context;
269270
// Only set registrar for v1 embedder.
271+
@SuppressWarnings("deprecation")
270272
private PluginRegistry.Registrar registrar;
271273
// Only set activity for v2 embedder. Always access activity from getActivity() method.
272274
private Activity activity;
@@ -282,6 +284,7 @@ public Delegate(Context context, GoogleSignInWrapper googleSignInWrapper) {
282284
this.googleSignInWrapper = googleSignInWrapper;
283285
}
284286

287+
@SuppressWarnings("deprecation")
285288
public void setUpRegistrar(PluginRegistry.Registrar registrar) {
286289
this.registrar = registrar;
287290
registrar.addActivityResultListener(this);

packages/google_sign_in/google_sign_in_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: google_sign_in_android
22
description: Android implementation of the google_sign_in plugin.
33
repository: https://github.com/flutter/plugins/tree/main/packages/google_sign_in/google_sign_in_android
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+google_sign_in%22
5-
version: 5.2.7
5+
version: 5.2.8
66

77
environment:
88
sdk: ">=2.14.0 <3.0.0"

0 commit comments

Comments
 (0)