Tools View & Crash Report & OOM Report
This commit is contained in:
@@ -9,13 +9,16 @@ import UserNotifications
|
||||
|
||||
class ApplicationDelegate: NSObject, UIApplicationDelegate, UNUserNotificationCenterDelegate {
|
||||
private var profileServer: ProfileServer?
|
||||
private var reportTransferServer: ReportTransferServer?
|
||||
|
||||
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
|
||||
NativeCrashReporter.installForCurrentProcess()
|
||||
NSLog("Here I stand")
|
||||
let options = LibboxSetupOptions()
|
||||
options.basePath = FilePath.sharedDirectory.relativePath
|
||||
options.workingPath = FilePath.workingDirectory.relativePath
|
||||
options.tempPath = FilePath.cacheDirectory.relativePath
|
||||
options.crashReportSource = "Application"
|
||||
var error: NSError?
|
||||
LibboxSetup(options, &error)
|
||||
LibboxSetLocale(Locale.current.identifier)
|
||||
@@ -77,6 +80,16 @@ class ApplicationDelegate: NSObject, UIApplicationDelegate, UNUserNotificationCe
|
||||
} catch {
|
||||
NSLog("setup profile server error: \(error.localizedDescription)")
|
||||
}
|
||||
do {
|
||||
let reportTransferServer = try ReportTransferServer()
|
||||
reportTransferServer.start()
|
||||
await MainActor.run {
|
||||
self.reportTransferServer = reportTransferServer
|
||||
}
|
||||
NSLog("started report transfer server")
|
||||
} catch {
|
||||
NSLog("setup report transfer server error: \(error.localizedDescription)")
|
||||
}
|
||||
registerFileProviderDomain()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user