Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt Calendar write-only permission in macOS Sonoma #700

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

insidegui
Copy link
Owner

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

@insidegui insidegui requested a review from allenhumphreys June 10, 2023 13:37
@@ -210,3 +137,107 @@ extension Storage {
setFavorite(!session.isFavorite, onSessionsWithIDs: [session.identifier])
}
}

// MARK: - Calendar Integration
Copy link
Collaborator

Choose a reason for hiding this comment

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

Separate file? We have lots of AppCoordinator+'s already :)

@insidegui insidegui merged commit dfd9ad8 into master Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants