Files
sing-box-for-apple/SFI/ApplicationDelegate.swift
T
2023-07-15 15:03:45 +08:00

21 lines
639 B
Swift

import ApplicationLibrary
import Foundation
import Library
import UIKit
class ApplicationDelegate: NSObject, UIApplicationDelegate {
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
NSLog("Here I stand")
ServiceNotification.register()
Task.detached {
do {
try await UIProfileUpdateTask.setup()
NSLog("setup background task success")
} catch {
NSLog("setup background task error: \(error.localizedDescription)")
}
}
return true
}
}