Skip to content

Commit

Permalink
Removes Android v1 embedding (#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanbeusekom committed May 2, 2024
1 parent bbcd26c commit 724e327
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
5 changes: 5 additions & 0 deletions permission_handler_android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 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)).


## 12.0.5

* Upgrades Gradle and Android Gradle plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,6 @@ public final class PermissionHandlerPlugin implements FlutterPlugin, ActivityAwa
@Nullable
private MethodCallHandlerImpl methodCallHandler;

/**
* Registers a plugin implementation that uses the stable {@code io.flutter.plugin.common}
* package.
*
* <p>Calling this automatically initializes the plugin. However plugins initialized this way
* won't react to changes in activity or context, unlike {@link PermissionHandlerPlugin}.
*/
@SuppressWarnings("deprecation")
public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
final PermissionHandlerPlugin plugin = new PermissionHandlerPlugin();

plugin.pluginRegistrar = registrar;
plugin.permissionManager = new PermissionManager(registrar.context());
plugin.registerListeners();

plugin.startListening(registrar.context(), registrar.messenger());

if (registrar.activeContext() instanceof Activity) {
plugin.startListeningToActivity(
registrar.activity()
);
}
}

@Override
public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {
this.permissionManager = new PermissionManager(binding.getApplicationContext());
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.5
version: 12.0.6

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

0 comments on commit 724e327

Please sign in to comment.