diff --git a/permission_handler/pubspec.yaml b/permission_handler/pubspec.yaml index 1f487c397..8036b1b82 100644 --- a/permission_handler/pubspec.yaml +++ b/permission_handler/pubspec.yaml @@ -2,7 +2,7 @@ name: permission_handler description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions. repository: https://github.com/baseflow/flutter-permission-handler issue_tracker: https://github.com/Baseflow/flutter-permission-handler/issues -version: 12.0.0+1 +version: 12.0.0+2 environment: @@ -28,7 +28,10 @@ dependencies: permission_handler_android: ^13.0.0 permission_handler_apple: ^9.4.6 permission_handler_html: ^0.1.1 - permission_handler_windows: ^0.2.1 + permission_handler_windows: + git: + url: https://github.com/MSOB7YY/flutter-permission-handler + path: permission_handler_windows permission_handler_platform_interface: ^4.3.0 dev_dependencies: diff --git a/permission_handler_windows/windows/permission_handler_windows_plugin.cpp b/permission_handler_windows/windows/permission_handler_windows_plugin.cpp index 4b4d6d184..99cc88c71 100644 --- a/permission_handler_windows/windows/permission_handler_windows_plugin.cpp +++ b/permission_handler_windows/windows/permission_handler_windows_plugin.cpp @@ -65,7 +65,6 @@ class PermissionHandlerWindowsPlugin : public Plugin { winrt::fire_and_forget IsBluetoothServiceEnabled(std::unique_ptr> result); winrt::Windows::Devices::Geolocation::Geolocator geolocator; - winrt::Windows::Devices::Geolocation::Geolocator::PositionChanged_revoker m_positionChangedRevoker; }; // static @@ -86,12 +85,7 @@ void PermissionHandlerWindowsPlugin::RegisterWithRegistrar( registrar->AddPlugin(std::move(plugin)); } -PermissionHandlerWindowsPlugin::PermissionHandlerWindowsPlugin(){ - m_positionChangedRevoker = geolocator.PositionChanged(winrt::auto_revoke, - [this](Geolocator const& geolocator, PositionChangedEventArgs e) - { - }); -} +PermissionHandlerWindowsPlugin::PermissionHandlerWindowsPlugin() = default; PermissionHandlerWindowsPlugin::~PermissionHandlerWindowsPlugin() = default;