Skip to content

Commit 9290ecd

Browse files
gmackallGray Mackall
andauthored
Remove additional Android v1 embedding class reference. (#1336)
* fully remove v1 embedding references * pubspec+changelog --------- Co-authored-by: Gray Mackall <mackall@google.com>
1 parent daf38b1 commit 9290ecd

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

permission_handler_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 12.0.7
2+
3+
* Removes additional Android v1 embedding class reference.
4+
15
## 12.0.6
26

37
* 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)).

permission_handler_android/android/src/main/java/com/baseflow/permissionhandler/PermissionHandlerPlugin.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ public final class PermissionHandlerPlugin implements FlutterPlugin, ActivityAwa
2222

2323
private MethodChannel methodChannel;
2424

25-
@SuppressWarnings("deprecation")
26-
@Nullable private io.flutter.plugin.common.PluginRegistry.Registrar pluginRegistrar;
27-
2825
@Nullable private ActivityPluginBinding pluginBinding;
2926

3027
@Nullable
@@ -109,10 +106,7 @@ private void stopListeningToActivity() {
109106
}
110107

111108
private void registerListeners() {
112-
if (this.pluginRegistrar != null) {
113-
this.pluginRegistrar.addActivityResultListener(this.permissionManager);
114-
this.pluginRegistrar.addRequestPermissionsResultListener(this.permissionManager);
115-
} else if (pluginBinding != null) {
109+
if (pluginBinding != null) {
116110
this.pluginBinding.addActivityResultListener(this.permissionManager);
117111
this.pluginBinding.addRequestPermissionsResultListener(this.permissionManager);
118112
}

permission_handler_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: permission_handler_android
22
description: Permission plugin for Flutter. This plugin provides the Android API to request and check permissions.
33
homepage: https://github.com/baseflow/flutter-permission-handler
4-
version: 12.0.6
4+
version: 12.0.7
55

66
environment:
77
sdk: ">=2.15.0 <4.0.0"

0 commit comments

Comments
 (0)