feat(drone-dock): 实现局域网扫码直传交付

This commit is contained in:
2026-10-30 14:50:34 +08:00
parent 0bc801f399
commit f99a175f99
25 changed files with 3084 additions and 74 deletions
@@ -6,6 +6,20 @@ import UIKit
enum DroneDockPreview {
/// 启动参数存在时返回预览导航,正常冷启动继续使用原业务根页面。
static func navigationController(arguments: [String]) -> UINavigationController? {
if arguments.contains("--dock-nearby-preview") {
if arguments.contains("--dock-nearby-library") {
return UINavigationController(rootViewController: DroneDockNearbyTransferViewController(
customerTitle: "本地相册测试 · 非游客订单"))
}
let nearby = DroneDockNearbyTransferViewController(customerTitle: "本地测试视频 · 非游客订单", videoPicker: {
guard let source = Bundle.main.url(forResource: "drone_material_demo", withExtension: "mp4")
?? Bundle.main.url(forResource: "drone_material_demo", withExtension: "mp4", subdirectory: "DroneDock") else {
throw DroneDockFilmError.invalidLocalFile
}
return try await DroneDockDeliveryVideoLoader.load(documentURL: source)
})
return UINavigationController(rootViewController: nearby)
}
if let materials = DroneDockMaterialsSimulation.makeController(arguments: arguments) {
return UINavigationController(rootViewController: materials)
}