insidegui / WWDC

The unofficial WWDC app for macOS
https://wwdc.io
BSD 2-Clause "Simplified" License
8.63k stars 783 forks source link

Adopt Calendar write-only permission in macOS Sonoma #700

Closed insidegui closed 1 year ago

insidegui commented 1 year ago

Since all we do is write to the calendar, we don't need full access.

There's a compile-time check so that the app keeps building just fine in Xcode 14. I wanted something like #if __MAC_OS_X_VERSION_MAX_ALLOWED in Swift, but apparently the only way to do a compile-time check for SDK is by using the #compiler directive. If you know of a better solution let me know.

CleanShot 2023-06-10 at 10 30 09@2x