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
@@ -0,0 +1,14 @@
import Photos
import XCTest
@testable import suixinkan
/// 闪传资源读取的离线约束,防止后续复用上传选择器时意外开启 iCloud 下载。
final class DroneDockNearbyVideoLoaderTests: XCTestCase {
/// Photos 导出参数每次独立创建,并且始终禁止网络拉取。
func testLocalResourceRequestNeverEnablesCloudDownload() {
let first = DroneDockNearbyVideoLoader.localResourceOptions()
XCTAssertFalse(first.isNetworkAccessAllowed)
first.isNetworkAccessAllowed = true
XCTAssertFalse(DroneDockNearbyVideoLoader.localResourceOptions().isNetworkAccessAllowed)
}
}