mirror of
https://github.com/metabolist/metatext.git
synced 2025-02-27 19:06:16 +00:00
20 lines
576 B
Swift
20 lines
576 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
struct AppEnvironment {
|
|
let session: Session
|
|
let webAuthSessionType: WebAuthSession.Type
|
|
let keychainServiceType: KeychainService.Type
|
|
let userDefaults: UserDefaults
|
|
let inMemoryContent: Bool
|
|
}
|
|
|
|
extension AppEnvironment {
|
|
static let live: Self = Self(
|
|
session: Session(configuration: .default),
|
|
webAuthSessionType: LiveWebAuthSession.self,
|
|
keychainServiceType: LiveKeychainService.self,
|
|
userDefaults: .standard,
|
|
inMemoryContent: false)
|
|
}
|