Extracted the PreviewPreinstalling service in the Sample app target into its own file and declared it as development asset.

This commit is contained in:
2026-07-05 16:29:28 +02:00
parent 83ac1cf4e4
commit f1e4b59809
6 changed files with 68 additions and 33 deletions
@@ -5,6 +5,8 @@ import Recording
/// on demand.
@MainActor
final class PreinstallingMock: Preinstalling {
// MARK: Properties
/// The stream of events the service emits while preinstalling.
let events: AsyncStream<PreinstallingEvent>
@@ -20,10 +22,14 @@ final class PreinstallingMock: Preinstalling {
/// The continuation that feeds ``events``.
private let continuation: AsyncStream<PreinstallingEvent>.Continuation
// MARK: Initializers
init() {
(events, continuation) = AsyncStream.makeStream(of: PreinstallingEvent.self)
}
// MARK: Methods
/// Emits the given event through ``events``.
///