// MARK: - Widget Extension Entry Point // // HOW TO WIRE THIS UP IN XCODE (one-time setup): // // 1. File > New > Target > Widget Extension // - Product Name: DownloadWidgetExtension // - Bundle ID: com.local.ABS-Client.DownloadWidgetExtension // - Uncheck "Include Configuration App Intent" // - Minimum deployment: iOS 16.2 (first stable ActivityKit release) // // 2. In the new target's Build Phases > Compile Sources, add: // - DownloadWidgetBundle.swift (this file) // - DownloadLiveActivityWidget.swift // - DownloadActivityAttributes.swift (the copy in this folder) // // 3. In the main app target's Build Phases > Compile Sources, confirm: // - DownloadActivityAttributes.swift (the copy in Services/) // is included. The two copies must stay identical. // // 4. In the main app's Build Phases > Embed App Extensions, add the // DownloadWidgetExtension.appex product. import SwiftUI import WidgetKit @main struct DownloadWidgetBundle: WidgetBundle { var body: some Widget { DownloadLiveActivityWidget() } }