Skip to content

Commit

Permalink
Big refactor of the import functionality and the compendium
Browse files Browse the repository at this point in the history
Introduces realms & documents that compendium entries can belong to.
  • Loading branch information
Thomvis committed Aug 18, 2023
1 parent 4111810 commit d1088c8
Show file tree
Hide file tree
Showing 74 changed files with 2,680 additions and 725 deletions.
6 changes: 3 additions & 3 deletions App/App/App/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Environment: ObservableObject {

var isIdleTimerDisabled: Binding<Bool>

var generateUUID: () -> UUID
var generateUUID: @Sendable () -> UUID
var rng: AnyRandomNumberGenerator
var mainQueue: AnySchedulerOf<DispatchQueue>
var backgroundQueue: AnySchedulerOf<DispatchQueue>
Expand All @@ -54,7 +54,7 @@ class Environment: ObservableObject {
rateInAppStore: @escaping () -> Void,
requestAppStoreReview: @escaping () -> Void,
isIdleTimerDisabled: Binding<Bool>,
generateUUID: @escaping () -> UUID,
generateUUID: @Sendable @escaping () -> UUID,
rng: AnyRandomNumberGenerator,
mainQueue: AnySchedulerOf<DispatchQueue>,
backgroundQueue: AnySchedulerOf<DispatchQueue>,
Expand Down Expand Up @@ -157,7 +157,7 @@ extension Environment {
}, set: {
UIApplication.shared.isIdleTimerDisabled = $0
}),
generateUUID: UUID.init,
generateUUID: { UUID() },
rng: AnyRandomNumberGenerator(wrapped: SystemRandomNumberGenerator()),
mainQueue: mainQueue ?? DispatchQueue.main.eraseToAnyScheduler(),
backgroundQueue: backgroundQueue ?? DispatchQueue.global(qos: .userInitiated).eraseToAnyScheduler(),
Expand Down

0 comments on commit d1088c8

Please sign in to comment.