feat(drone-dock): 接入火山实时图传并保留禁飞保护

This commit is contained in:
2026-11-02 11:01:02 +08:00
parent c1fd2d0859
commit b21a3b6cb6
204 changed files with 112972 additions and 3274 deletions
@@ -5,6 +5,10 @@ import XCTest
/// 验证禁飞调试在进入传输层之前拦截真实操作,所有探针本身也不联网。
@MainActor
final class DeviceCommandDebugPolicyTests: XCTestCase {
/// 飞行限制不再由 Debug/Release 决定,正式包也不得用于创建待飞任务或飞控。
func testFlightRestrictionIsIndependentOfLivePlaybackBuildMode() {
XCTAssertTrue(DeviceCommandDebugPolicy.blocksFlightRequests)
}
/// 即使切到生产地址或未来新增机场动作,默认传输也不能发送设备操作。
func testTypedCommandsAreBlockedBeforeTransportInBothEnvironments() async throws {
XCTAssertTrue(DeviceCommandDebugPolicy.blocksLiveRequests)