2020-08-02 22:23:01 +00:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
struct AppEnvironment {
|
2020-08-12 07:24:39 +00:00
|
|
|
let session: Session
|
2020-08-09 01:37:46 +00:00
|
|
|
let webAuthSessionType: WebAuthSessionType.Type
|
2020-08-12 07:24:39 +00:00
|
|
|
let keychainServiceType: KeychainServiceType.Type
|
|
|
|
let userDefaults: UserDefaults = .standard
|
|
|
|
}
|
|
|
|
|
|
|
|
extension AppEnvironment {
|
|
|
|
static let live: Self = Self(
|
|
|
|
session: Session(configuration: .default),
|
|
|
|
webAuthSessionType: WebAuthSession.self,
|
|
|
|
keychainServiceType: KeychainService.self)
|
2020-08-02 22:23:01 +00:00
|
|
|
}
|