Tools View & Crash Report & OOM Report

This commit is contained in:
世界
2026-04-23 08:12:52 +08:00
parent 73180f0230
commit b48f4ad97f
46 changed files with 4279 additions and 533 deletions
+13
View File
@@ -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()
}
}