Skip to content

Commit 724e327

Browse files
authored
Removes Android v1 embedding (#1318)
1 parent bbcd26c commit 724e327

File tree

3 files changed

+6
-25
lines changed

3 files changed

+6
-25
lines changed

permission_handler_android/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 12.0.6
2+
3+
* 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)).
4+
5+
16
## 12.0.5
27

38
* Upgrades Gradle and Android Gradle plugin.

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,6 @@ public final class PermissionHandlerPlugin implements FlutterPlugin, ActivityAwa
3030
@Nullable
3131
private MethodCallHandlerImpl methodCallHandler;
3232

33-
/**
34-
* Registers a plugin implementation that uses the stable {@code io.flutter.plugin.common}
35-
* package.
36-
*
37-
* <p>Calling this automatically initializes the plugin. However plugins initialized this way
38-
* won't react to changes in activity or context, unlike {@link PermissionHandlerPlugin}.
39-
*/
40-
@SuppressWarnings("deprecation")
41-
public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
42-
final PermissionHandlerPlugin plugin = new PermissionHandlerPlugin();
43-
44-
plugin.pluginRegistrar = registrar;
45-
plugin.permissionManager = new PermissionManager(registrar.context());
46-
plugin.registerListeners();
47-
48-
plugin.startListening(registrar.context(), registrar.messenger());
49-
50-
if (registrar.activeContext() instanceof Activity) {
51-
plugin.startListeningToActivity(
52-
registrar.activity()
53-
);
54-
}
55-
}
56-
5733
@Override
5834
public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {
5935
this.permissionManager = new PermissionManager(binding.getApplicationContext());

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.5
4+
version: 12.0.6
55

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

0 commit comments

Comments
 (0)