feat(ios): add cross-instance log center
This commit is contained in:
@@ -39,6 +39,21 @@ enum DefaultContainer {
|
||||
)
|
||||
}
|
||||
|
||||
@MainActor
|
||||
static func makeLogsModel() -> LogsViewModel {
|
||||
let store = FileLogStore(location: documentFileURL("log-center.json"))
|
||||
return LogsViewModel(
|
||||
repository: FileInstanceRepository(location: documentFileURL("instances.json")),
|
||||
service: LogCenterService(
|
||||
client: SimAdminClient(),
|
||||
sessions: InstanceSessionStore(),
|
||||
credentials: KeychainCredentialStore(),
|
||||
store: store
|
||||
),
|
||||
store: store
|
||||
)
|
||||
}
|
||||
|
||||
@MainActor
|
||||
static func makeDeviceModel(instance: Instance) -> DeviceViewModel {
|
||||
DeviceViewModel(
|
||||
|
||||
Reference in New Issue
Block a user