Skip to content

Commit

Permalink
Remove additional Android v1 embedding class reference. (#1336)
Browse files Browse the repository at this point in the history
* fully remove v1 embedding references

* pubspec+changelog

---------

Co-authored-by: Gray Mackall <[email protected]>
  • Loading branch information
gmackall and Gray Mackall committed Jun 11, 2024
1 parent daf38b1 commit 9290ecd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions permission_handler_android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 12.0.7

* Removes additional Android v1 embedding class reference.

## 12.0.6

* Removes deprecated support for Android V1 embedding as support will be removed from Flutter (see [flutter/flutter#144726](https://github.com/flutter/flutter/pull/144726)).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ public final class PermissionHandlerPlugin implements FlutterPlugin, ActivityAwa

private MethodChannel methodChannel;

@SuppressWarnings("deprecation")
@Nullable private io.flutter.plugin.common.PluginRegistry.Registrar pluginRegistrar;

@Nullable private ActivityPluginBinding pluginBinding;

@Nullable
Expand Down Expand Up @@ -109,10 +106,7 @@ private void stopListeningToActivity() {
}

private void registerListeners() {
if (this.pluginRegistrar != null) {
this.pluginRegistrar.addActivityResultListener(this.permissionManager);
this.pluginRegistrar.addRequestPermissionsResultListener(this.permissionManager);
} else if (pluginBinding != null) {
if (pluginBinding != null) {
this.pluginBinding.addActivityResultListener(this.permissionManager);
this.pluginBinding.addRequestPermissionsResultListener(this.permissionManager);
}
Expand Down
2 changes: 1 addition & 1 deletion permission_handler_android/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: permission_handler_android
description: Permission plugin for Flutter. This plugin provides the Android API to request and check permissions.
homepage: https://github.com/baseflow/flutter-permission-handler
version: 12.0.6
version: 12.0.7

environment:
sdk: ">=2.15.0 <4.0.0"
Expand Down

0 comments on commit 9290ecd

Please sign in to comment.