mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Structured logging (#831)
* Structured logging support * Bump the SDK, fix breaking changes * Enabled more logging of timeline diffs * Keep only source file last path components in logs * Bump the SDK, tweaks following code review
This commit is contained in:
@@ -19,13 +19,15 @@ import SwiftUI
|
||||
@main
|
||||
struct Application: App {
|
||||
@UIApplicationDelegateAdaptor(AppDelegate.self) private var applicationDelegate
|
||||
private let applicationCoordinator: AppCoordinatorProtocol
|
||||
private let appCoordinator: AppCoordinatorProtocol!
|
||||
|
||||
init() {
|
||||
if Tests.isRunningUITests {
|
||||
applicationCoordinator = UITestsAppCoordinator()
|
||||
appCoordinator = UITestsAppCoordinator()
|
||||
} else if Tests.isRunningUnitTests {
|
||||
appCoordinator = nil
|
||||
} else {
|
||||
applicationCoordinator = AppCoordinator()
|
||||
appCoordinator = AppCoordinator()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,9 +36,9 @@ struct Application: App {
|
||||
if Tests.isRunningUnitTests {
|
||||
EmptyView()
|
||||
} else {
|
||||
applicationCoordinator.toPresentable()
|
||||
appCoordinator.toPresentable()
|
||||
.task {
|
||||
applicationCoordinator.start()
|
||||
appCoordinator.start()
|
||||
}
|
||||
.statusBarHidden(shouldHideStatusBar)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user