Skip to content

Commit 3c06537

Browse files
committed
shift imports to align with broader platform assumptions
1 parent acb8025 commit 3c06537

26 files changed

Lines changed: 104 additions & 0 deletions

Sources/DHKit/AdversarySlot.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
//
77

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

1115
/// A single adversary participant in a live encounter.
1216
///

Sources/DHKit/Compendium.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
//
1515

1616
import DHModels
17+
#if canImport(FoundationEssentials)
18+
import FoundationEssentials
19+
#else
1720
import Foundation
21+
#endif
1822
import Logging
1923
import Observation
2024

Sources/DHKit/EncounterParticipant.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
//
88

99
import DHModels
10+
#if canImport(FoundationEssentials)
11+
import FoundationEssentials
12+
#else
1013
import Foundation
14+
#endif
1115

1216
/// A participant in a Daggerheart encounter that can hold the spotlight.
1317
///

Sources/DHKit/EncounterSession.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
//
1818

1919
import DHModels
20+
#if canImport(FoundationEssentials)
21+
import FoundationEssentials
22+
#else
2023
import Foundation
24+
#endif
2125
import Logging
2226
import Observation
2327

Sources/DHKit/EncounterStore.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
//
1717

1818
import DHModels
19+
#if canImport(FoundationEssentials)
20+
import FoundationEssentials
21+
#else
1922
import Foundation
23+
#endif
2024
import Observation
2125

2226
// MARK: - EncounterStoreError

Sources/DHKit/EnvironmentSlot.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
// An environment element active in the current encounter scene.
66
//
77

8+
#if canImport(FoundationEssentials)
9+
import FoundationEssentials
10+
#else
811
import Foundation
12+
#endif
913

1014
/// An environment element active in the current encounter scene.
1115
///

Sources/DHKit/PlayerSlot.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
//
1515

1616
import DHModels
17+
#if canImport(FoundationEssentials)
18+
import FoundationEssentials
19+
#else
1720
import Foundation
21+
#endif
1822

1923
/// A player character participant in a live encounter.
2024
///

Sources/DHKit/SessionRegistry.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
//
1212

1313
import DHModels
14+
#if canImport(FoundationEssentials)
15+
import FoundationEssentials
16+
#else
1417
import Foundation
18+
#endif
1519
import Observation
1620

1721
/// In-memory registry of live ``EncounterSession`` objects, keyed by definition ID.

Sources/DHModels/Adversary.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
// See docs/data-schema.md for full field reference and source notes.
1414
//
1515

16+
#if canImport(FoundationEssentials)
17+
import FoundationEssentials
18+
#else
1619
import Foundation
20+
#endif
1721

1822
// MARK: - AdversaryType
1923

Sources/DHModels/Condition.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
// Per the SRD, the same condition cannot stack on a target.
1414
//
1515

16+
#if canImport(FoundationEssentials)
17+
import FoundationEssentials
18+
#else
1619
import Foundation
20+
#endif
1721

1822
/// A condition that can be applied to a combatant in a Daggerheart encounter.
1923
///

0 commit comments

Comments
 (0)