Skip to content

Commit

Permalink
🚨 Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaatttt committed Nov 6, 2024
1 parent cb2feb6 commit f9c08be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/AppcuesKit/Presentation/Debugger/PushVerifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ private extension UNNotificationResponse {
config: Appcues.Config,
actionIdentifier: String = UNNotificationDefaultActionIdentifier
) -> UNNotificationResponse? {
guard let response = UNNotificationResponse(coder: KeyedArchiver()),
guard let response = UNNotificationResponse(coder: KeyedArchiver(requiringSecureCoding: false)),
let notification = UNNotification.mock(token: token, config: config) else {
return nil
}
Expand All @@ -331,7 +331,7 @@ private extension UNNotification {
config: Appcues.Config,
actionIdentifier: String = UNNotificationDefaultActionIdentifier
) -> UNNotification? {
guard let notification = UNNotification(coder: KeyedArchiver()) else {
guard let notification = UNNotification(coder: KeyedArchiver(requiringSecureCoding: false)) else {
return nil
}

Expand Down

0 comments on commit f9c08be

Please sign in to comment.