| 1 |
|
| 2 |
#[cfg(not(feature = "preview-macos-un"))] |
| 3 |
mod nsusernotifications; |
| 4 |
|
| 5 |
#[cfg(not(feature = "preview-macos-un"))] |
| 6 |
pub(crate) use nsusernotifications::{schedule_notification, show_notification}; |
| 7 |
|
| 8 |
#[cfg(not(feature = "preview-macos-un"))] |
| 9 |
pub use nsusernotifications::{ |
| 10 |
ApplicationError, MacOsError, NotificationError, NotificationHandle, |
| 11 |
}; |
| 12 |
|
| 13 |
|
| 14 |
#[cfg_attr( |
| 15 |
feature = "preview-macos-un", |
| 16 |
deprecated(note = "these functions have no effect in this configuration") |
| 17 |
)] |
| 18 |
pub use mac_notification_sys::{get_bundle_identifier_or_default, set_application}; |
| 19 |
|
| 20 |
|
| 21 |
#[cfg(feature = "preview-macos-un")] |
| 22 |
mod unusernotifications; |
| 23 |
|
| 24 |
#[cfg(feature = "preview-macos-un")] |
| 25 |
pub(crate) use unusernotifications::{ |
| 26 |
schedule_notification, show_notification, show_notification_async, |
| 27 |
}; |
| 28 |
|
| 29 |
#[cfg(feature = "preview-macos-un")] |
| 30 |
pub use unusernotifications::{MacOsError, NotificationHandle}; |
| 31 |
|
| 32 |
#[cfg(feature = "preview-macos-un")] |
| 33 |
pub use mac_usernotifications::blocking::{ |
| 34 |
get_notification_settings as get_notification_settings_blocking, |
| 35 |
request_auth as request_auth_blocking, |
| 36 |
}; |
| 37 |
#[cfg(feature = "preview-macos-un")] |
| 38 |
pub use mac_usernotifications::{check_bundle, get_notification_settings, request_auth}; |