1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Platform: Remove compatibility checks for macOS 10.8

This commit is contained in:
reuk 2024-07-01 17:09:48 +01:00
parent 4576a75388
commit da8c5fdcb4
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
3 changed files with 13 additions and 46 deletions

View file

@ -371,11 +371,8 @@ struct PushNotifications::Pimpl : private PushNotificationsDelegate
NSRemoteNotificationType types = NSUInteger ((bool) settings.allowBadge);
if (@available (macOS 10.8, *))
{
types |= (NSUInteger) ((settings.allowSound ? NSRemoteNotificationTypeSound : 0)
| (settings.allowAlert ? NSRemoteNotificationTypeAlert : 0));
}
types |= (NSUInteger) ((settings.allowSound ? NSRemoteNotificationTypeSound : 0)
| (settings.allowAlert ? NSRemoteNotificationTypeAlert : 0));
[[NSApplication sharedApplication] registerForRemoteNotificationTypes: types];
}
@ -384,11 +381,8 @@ struct PushNotifications::Pimpl : private PushNotificationsDelegate
{
settings.allowBadge = [NSApplication sharedApplication].enabledRemoteNotificationTypes & NSRemoteNotificationTypeBadge;
if (@available (macOS 10.8, *))
{
settings.allowSound = [NSApplication sharedApplication].enabledRemoteNotificationTypes & NSRemoteNotificationTypeSound;
settings.allowAlert = [NSApplication sharedApplication].enabledRemoteNotificationTypes & NSRemoteNotificationTypeAlert;
}
settings.allowSound = [NSApplication sharedApplication].enabledRemoteNotificationTypes & NSRemoteNotificationTypeSound;
settings.allowAlert = [NSApplication sharedApplication].enabledRemoteNotificationTypes & NSRemoteNotificationTypeAlert;
owner.listeners.call ([&] (Listener& l) { l.notificationSettingsReceived (settings); });
}