mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-23 00:17:16 +08:00
25 lines
798 B
Swift
25 lines
798 B
Swift
import ApplicationLibrary
|
|
import Foundation
|
|
import Libbox
|
|
import Library
|
|
import UIKit
|
|
|
|
class ApplicationDelegate: NSObject, UIApplicationDelegate {
|
|
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
|
|
NSLog("Here I stand")
|
|
LibboxSetup(FilePath.sharedDirectory.relativePath, FilePath.workingDirectory.relativePath, FilePath.cacheDirectory.relativePath, true)
|
|
LibboxSetLocale(Locale.current.identifier)
|
|
setup()
|
|
return true
|
|
}
|
|
|
|
private func setup() {
|
|
do {
|
|
try UIProfileUpdateTask.configure()
|
|
NSLog("setup background task success")
|
|
} catch {
|
|
NSLog("setup background task error: \(error.localizedDescription)")
|
|
}
|
|
}
|
|
}
|