[diagnostics]: Added switches for OperationLogging to use them for debugging/diagnostics on device

This commit is contained in:
Magesh K
2025-01-14 07:23:23 +05:30
parent abd3735ae4
commit 0da743e9a6
7 changed files with 485 additions and 82 deletions

View File

@@ -80,6 +80,7 @@ extension SettingsViewController
case exportResignedApp
case verboseOperationsLogging
case exportSqliteDB
case operationsLoggingControl
}
}
@@ -1091,6 +1092,13 @@ extension SettingsViewController
}
}
case .operationsLoggingControl:
// Instantiate SwiftUI View inside UIHostingController
let operationsLoggingControlView = OperationsLoggingControlView()
let operationsLoggingController = UIHostingController(rootView: operationsLoggingControlView)
let segue = UIStoryboardSegue(identifier: "operationsLoggingControl", source: self, destination: operationsLoggingController)
self.present(segue.destination, animated: true, completion: nil)
case .responseCaching, .exportResignedApp, .verboseOperationsLogging : break
}