mirror of
https://github.com/sparrowcode/PermissionsKit.git
synced 2026-11-18 20:15:58 +00:00
EKAuthorizationStatusAuthorized is declared as an alias of fullAccess and kCLAuthorizationStatusAuthorized as an alias of authorizedAlways, so in Calendar, Reminders and Location the branch listed first swallowed the one below it. Location now says plainly what it always did: always covers either access level, when-in-use covers only its own. Calendar and Location kept a Permission.Kind and unpacked it with switches ending in fatalError, although each type only ever holds its own kind. They store the access level instead and build the kind from it, which also lets Calendar request the level directly rather than through two intermediate closures. The location handlers no longer implement locationManager(_:didChangeAuthorization:), deprecated since iOS 14 and never called at the current deployment target. Location imported EventKit instead of CoreLocation and Bluetooth imported CloudKit without using it. The German strings file still carried nine keys from an interface the package no longer ships. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>