Skip to content

Commit e9a6ad7

Browse files
author
Tobias Kreß
committed
Remove dismissalDate from APNSStartLiveActivityNotification
1 parent 01b731f commit e9a6ad7

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

Sources/APNSCore/LiveActivity/APNSStartLiveActivityNotification.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@ public struct APNSStartLiveActivityNotification<Attributes: Encodable & Sendable
5959
}
6060
}
6161

62-
public var dismissalDate: APNSLiveActivityDismissalDate? {
63-
get {
64-
return .init(dismissal: self.aps.dismissalDate)
65-
}
66-
set {
67-
self.aps.dismissalDate = newValue?.dismissal
68-
}
69-
}
70-
7162
/// A canonical UUID that identifies the notification. If there is an error sending the notification,
7263
/// APNs uses this value to identify the notification to your server. The canonical form is 32 lowercase hexadecimal digits,
7364
/// displayed in five groups separated by hyphens in the form 8-4-4-4-12. An example UUID is as follows:
@@ -100,8 +91,6 @@ public struct APNSStartLiveActivityNotification<Attributes: Encodable & Sendable
10091
/// - appID: Your app’s bundle ID/app ID. This will be suffixed with `.push-type.liveactivity`.
10192
/// - contentState: Updated content-state of live activity
10293
/// - timestamp: Timestamp when sending notification
103-
/// - dismissalDate: Timestamp when to dismiss live notification when sent with `end`, if in the past
104-
/// dismiss immediately
10594
/// - apnsID: A canonical UUID that identifies the notification.
10695
/// - attributes: The ActivityAttributes of the live activity to start
10796
/// - attributesType: The type name of the ActivityAttributes you want to send
@@ -112,7 +101,6 @@ public struct APNSStartLiveActivityNotification<Attributes: Encodable & Sendable
112101
appID: String,
113102
contentState: ContentState,
114103
timestamp: Int,
115-
dismissalDate: APNSLiveActivityDismissalDate = .none,
116104
apnsID: UUID? = nil,
117105
attributes: Attributes,
118106
attributesType: String,
@@ -121,7 +109,6 @@ public struct APNSStartLiveActivityNotification<Attributes: Encodable & Sendable
121109
self.aps = APNSStartLiveActivityNotificationAPSStorage(
122110
timestamp: timestamp,
123111
contentState: contentState,
124-
dismissalDate: dismissalDate.dismissal,
125112
alert: alert,
126113
attributes: attributes,
127114
attributesType: attributesType

Sources/APNSCore/LiveActivity/APNSStartLiveActivityNotificationAPSStorage.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ struct APNSStartLiveActivityNotificationAPSStorage<Attributes: Encodable & Senda
1919
case timestamp = "timestamp"
2020
case event = "event"
2121
case contentState = "content-state"
22-
case dismissalDate = "dismissal-date"
2322
case alert = "alert"
2423
case attributes = "attributes"
2524
case attributesType = "attributes-type"
@@ -28,22 +27,19 @@ struct APNSStartLiveActivityNotificationAPSStorage<Attributes: Encodable & Senda
2827
var timestamp: Int
2928
var event: String = "start"
3029
var contentState: ContentState
31-
var dismissalDate: Int?
3230
var alert: APNSAlertNotificationContent
3331
var attributes: Attributes
3432
var attributesType: String
3533

3634
init(
3735
timestamp: Int,
3836
contentState: ContentState,
39-
dismissalDate: Int?,
4037
alert: APNSAlertNotificationContent,
4138
attributes: Attributes,
4239
attributesType: String
4340
) {
4441
self.timestamp = timestamp
4542
self.contentState = contentState
46-
self.dismissalDate = dismissalDate
4743
self.alert = alert
4844
self.attributes = attributes
4945
self.attributesType = attributesType

0 commit comments

Comments
 (0)