From a1d61b979216ec125fad50b042756096fec699e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Ali=20Ustao=C4=9Flu?= Date: Fri, 30 Oct 2026 20:36:32 +0100 Subject: [PATCH] permission_handler_watchos: the example README and the Siri test comment The example is permission_handler_apple's own since #11, so its README no longer describes a watch demo. Siri's switch is the Info.plist Boolean PermissionHandlerWatchosSiri, not NSSiriUsageDescription, so the integration test's comment names it. --- packages/permission_handler_watchos/example/README.md | 5 +++-- .../example/integration_test/permission_handler_test.dart | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/permission_handler_watchos/example/README.md b/packages/permission_handler_watchos/example/README.md index ac2fe02..33017fa 100644 --- a/packages/permission_handler_watchos/example/README.md +++ b/packages/permission_handler_watchos/example/README.md @@ -1,7 +1,8 @@ # permission_handler_example -A watch demo of `permission_handler_watchos`: every permission watchOS has, -with its status. Tapping one asks for it. +`permission_handler_apple`'s own example app, on watchOS: it lists every +permission with its status and asks for one when tapped. Run it, and its +integration test, on an Apple Watch simulator with: ```sh flutter-watchos run -d diff --git a/packages/permission_handler_watchos/example/integration_test/permission_handler_test.dart b/packages/permission_handler_watchos/example/integration_test/permission_handler_test.dart index 4e7cd4d..9d8606a 100644 --- a/packages/permission_handler_watchos/example/integration_test/permission_handler_test.dart +++ b/packages/permission_handler_watchos/example/integration_test/permission_handler_test.dart @@ -37,9 +37,9 @@ void main() { expect(await Permission.storage.status, PermissionStatus.granted); expect(await Permission.storage.request(), PermissionStatus.granted); // The example has neither the Critical Alerts entitlement nor Siri, so - // neither has been asked for. Its Info.plist has no - // NSSiriUsageDescription, so Siri is not even asked about: INPreferences - // ends an app without the Siri entitlement. + // neither has been asked for. Its Info.plist does not set + // PermissionHandlerWatchosSiri, so Siri is not even asked about: + // INPreferences ends an app without the Siri entitlement. expect(await Permission.criticalAlerts.status, PermissionStatus.denied); expect(await Permission.assistant.status, PermissionStatus.denied); });