- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
937 B
Swift
28 lines
937 B
Swift
// Copyright 2023-present 650 Industries. All rights reserved.
|
|
|
|
import ExpoModulesCore
|
|
|
|
public final class FileSystemBackgroundSessionHandler: ExpoAppDelegateSubscriber, EXSessionHandlerProtocol {
|
|
public typealias BackgroundSessionCompletionHandler = () -> Void
|
|
|
|
private var completionHandlers: [String: BackgroundSessionCompletionHandler] = [:]
|
|
|
|
public func invokeCompletionHandler(forSessionIdentifier identifier: String) {
|
|
guard let completionHandler = completionHandlers[identifier] else {
|
|
return
|
|
}
|
|
DispatchQueue.main.async {
|
|
completionHandler()
|
|
}
|
|
completionHandlers.removeValue(forKey: identifier)
|
|
}
|
|
|
|
// MARK: - ExpoAppDelegateSubscriber
|
|
|
|
#if os(iOS) || os(tvOS)
|
|
public func application(_ application: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Void) {
|
|
completionHandlers[identifier] = completionHandler
|
|
}
|
|
#endif
|
|
}
|