Skip to content

Commit

Permalink
[flutter_appauth] Suppress android v1 embedding warnings (#212)
Browse files Browse the repository at this point in the history
* suppress warnings for using Android v1 embedding APIs

* remove deprecated avoid_as linter rule

* bump plugin version and update changelog
  • Loading branch information
MaikuB authored Jun 4, 2021
1 parent b0d390f commit be0fd7a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
4 changes: 4 additions & 0 deletions flutter_appauth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0+1

* There are no functional changes in this release. The only changes done were to suppress warnings that were occurring as a result of making use of Android v1 embedding APIs for backwards compatibility

## 1.0.0

* Migrated to null safety
Expand Down
1 change: 0 additions & 1 deletion flutter_appauth/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ linter:
- always_specify_types
- annotate_overrides
# - avoid_annotating_with_dynamic # conflicts with always_specify_types
- avoid_as
- avoid_bool_literals_in_conditional_expressions
# - avoid_catches_without_on_clauses # we do this commonly
# - avoid_catching_errors # we do this commonly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
import io.flutter.plugin.common.MethodChannel.Result;
import io.flutter.plugin.common.PluginRegistry;
import io.flutter.plugin.common.PluginRegistry.Registrar;
import io.flutter.view.FlutterNativeView;

/**
* FlutterAppauthPlugin
Expand Down Expand Up @@ -65,18 +63,16 @@ public class FlutterAppauthPlugin implements FlutterPlugin, MethodCallHandler, P
private AuthorizationService defaultAuthorizationService;
private AuthorizationService insecureAuthorizationService;

/**
* Plugin registration.
*/
public static void registerWith(Registrar registrar) {
@SuppressWarnings("deprecation")
public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
final FlutterAppauthPlugin plugin = new FlutterAppauthPlugin();
plugin.setActivity(registrar.activity());
plugin.onAttachedToEngine(registrar.context(), registrar.messenger());
registrar.addActivityResultListener(plugin);
registrar.addViewDestroyListener(
new PluginRegistry.ViewDestroyListener() {
@Override
public boolean onViewDestroy(FlutterNativeView view) {
public boolean onViewDestroy(io.flutter.view.FlutterNativeView view) {
plugin.disposeAuthorizationServices();
return false;
}
Expand Down
1 change: 0 additions & 1 deletion flutter_appauth/example/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ linter:
- always_specify_types
- annotate_overrides
# - avoid_annotating_with_dynamic # conflicts with always_specify_types
- avoid_as
- avoid_bool_literals_in_conditional_expressions
# - avoid_catches_without_on_clauses # we do this commonly
# - avoid_catching_errors # we do this commonly
Expand Down
2 changes: 1 addition & 1 deletion flutter_appauth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_appauth
description: This plugin provides an abstraction around the Android and iOS AppAuth SDKs so it can be used to communicate with OAuth 2.0 and OpenID Connect providers
version: 1.0.0
version: 1.0.0+1
homepage: https://github.com/MaikuB/flutter_appauth/tree/master/flutter_appauth

environment:
Expand Down

0 comments on commit be0fd7a

Please sign in to comment.