Skip to content

Commit 61f89bf

Browse files
Updated Foundation import to use only essentials on Linux
1 parent 7ff6575 commit 61f89bf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Sources/WebPush/Push Message/Notification.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
// Copyright © 2024-25 Mochi Development, Inc. All rights reserved.
77
//
88

9+
#if canImport(FoundationEssentials)
10+
import FoundationEssentials
11+
#else
912
import Foundation
13+
#endif
1014

1115
// MARK: - Notification
1216

Sources/WebPush/Push Message/PushMessage.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@
66
// Copyright © 2024-25 Mochi Development, Inc. All rights reserved.
77
//
88

9-
import Foundation
10-
119
/// Common Push Message types.
1210
public enum PushMessage: Sendable {}

0 commit comments

Comments
 (0)