mirror of
https://github.com/metabolist/metatext.git
synced 2024-12-02 04:50:59 +00:00
17 lines
493 B
Swift
17 lines
493 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 = .standard
|
|
}
|
|
|
|
extension AppEnvironment {
|
|
static let live: Self = Self(
|
|
session: Session(configuration: .default),
|
|
webAuthSessionType: LiveWebAuthSession.self,
|
|
keychainServiceType: LiveKeychainService.self)
|
|
}
|