Skip to content

Commit

Permalink
Adds missing watchOS compile checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miiha committed May 26, 2022
1 parent 0dabfdc commit a67f306
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/ComposableUserNotifications/Live.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension UserNotificationClient {
}
}

#if os(iOS) || os(macOS) || targetEnvironment(macCatalyst)
#if os(iOS) || os(macOS) || os(watchOS) || targetEnvironment(macCatalyst)
client.getDeliveredNotifications = {
.future { callback in
center.getDeliveredNotifications { notifications in
Expand All @@ -38,7 +38,7 @@ extension UserNotificationClient {
}.eraseToEffect()
}

#if os(iOS) || os(macOS) || targetEnvironment(macCatalyst)
#if os(iOS) || os(macOS) || os(watchOS) || targetEnvironment(macCatalyst)
client.getNotificationCategories = {
Effect.future { callback in
center.getNotificationCategories { categories in
Expand All @@ -56,7 +56,7 @@ extension UserNotificationClient {
}
}

#if os(iOS) || os(macOS) || targetEnvironment(macCatalyst)
#if os(iOS) || os(macOS) || os(watchOS) || targetEnvironment(macCatalyst)
client.removeAllDeliveredNotifications = {
.fireAndForget {
center.removeAllDeliveredNotifications()
Expand All @@ -70,7 +70,7 @@ extension UserNotificationClient {
}
}

#if os(iOS) || os(macOS) || targetEnvironment(macCatalyst)
#if os(iOS) || os(macOS) || os(watchOS) || targetEnvironment(macCatalyst)
client.removeDeliveredNotificationsWithIdentifiers = { identifiers in
.fireAndForget {
center.removeDeliveredNotifications(withIdentifiers: identifiers)
Expand Down

0 comments on commit a67f306

Please sign in to comment.