Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions permission_handler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 12.0.2

- Updated windows permission handler to be compatible with clang-cl

## 12.0.1

- Updates the correspondence between permission groups and the key values of Info.plist in the README.md.
Expand Down
4 changes: 2 additions & 2 deletions permission_handler/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.1
version: 12.0.2

environment:
sdk: ^3.5.0
Expand All @@ -27,7 +27,7 @@ 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: ^0.2.2
permission_handler_platform_interface: ^4.3.0

dev_dependencies:
Expand Down
5 changes: 5 additions & 0 deletions permission_handler_windows/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.2.2

* clang-cl support
* Explicit Type Conversion: Wrapped `requestResults` in `flutter::EncodableValue(...)` before passing it to `result->Success()
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing closing backtick after result->Success(). The line should end with a closing backtick to properly format the inline code.

Suggested change
* Explicit Type Conversion: Wrapped `requestResults` in `flutter::EncodableValue(...)` before passing it to `result->Success()
* Explicit Type Conversion: Wrapped `requestResults` in `flutter::EncodableValue(...)` before passing it to `result->Success()`

Copilot uses AI. Check for mistakes.

## 0.2.1

* Updates the dependency on `permission_handler_platform_interface` to version 4.1.0 (SiriKit support is only available for iOS and macOS).
Expand Down
2 changes: 1 addition & 1 deletion permission_handler_windows/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: permission_handler_windows
description: Permission plugin for Flutter. This plugin provides the Windows API to request and check permissions.
version: 0.2.1
version: 0.2.2
homepage: https://github.com/baseflow/flutter-permission-handler

flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ void PermissionHandlerWindowsPlugin::HandleMethodCall(
requestResults.insert({EncodableValue(permissions[i]), EncodableValue((int)permissionStatus)});
}

result->Success(requestResults);
// FIX: Explicitly wrap the map in EncodableValue for clang-cl compatibility.
// This is also valid for MSVC.
result->Success(EncodableValue(requestResults));

} else if (methodName.compare("shouldShowRequestPermissionRationale") == 0
|| methodName.compare("openAppSettings")) {
result->Success(EncodableValue(false));
Expand Down
Loading