优化IOS

This commit is contained in:
zhy200308
2026-08-19 09:31:21 +08:00
parent 7023062b45
commit eae24000e9
29 changed files with 4025 additions and 377 deletions
+48
View File
@@ -78,4 +78,52 @@
- [ ] real Android Gradle APK build in this container (SDK unavailable here)
- [ ] install/runtime matrix on physical Android 7→latest devices
## iOS (v0.5.0)
Optical receive (PC screen → iPhone camera)
- [x] Swift QFT2 + Base45 + CRC32 frame decode, QFT1 legacy read
- [x] session assembler: dedupe, positioned writes, whole-file SHA-256, discard on mismatch
- [x] AVCaptureVideoDataOutput + Vision `VNDetectBarcodesRequest`
- [x] format picked for highest resolution among ≥60 FPS formats; fixed frame rate, HDR/stabilisation off
- [x] `alwaysDiscardsLateVideoFrames` (no stale camera frames)
- [x] centered search → ROI lock → progressive expansion → reacquire
- [x] periodic AF/AE at ROI center after lock
- [x] separate decoded/s and distinct-new-frame/s counters
- [ ] physical throughput matrix (30/45/60 FPS × device)
iPhone ↔ Windows dedicated network
- [x] accept Wi-Fi-only QFTPAIR2/QFTSEND2 (no endpoints, by design)
- [x] `NEHotspotConfiguration` join with `joinOnce`
- [x] honest fallback to guided manual join when the entitlement is unavailable
- [x] default gateway from `sysctl` route table; gateway-first host candidates
- [x] join verified by authenticated `/qft/ping`, not by the system callback
- [ ] physical Windows Wi-Fi Direct AP join (both entitlement paths)
iPhone ↔ Mac / Linux LAN
- [x] `QFTBROWSE3` node browse client
- [x] desktop connect code (Crockford Base32 + CRC-8), cross-verified against Rust vectors
- [x] `POST /qft/pair` code → token, no retry on failure
- [x] eight-way parallel Range download, 64 KiB–16 MiB adaptive chunks
- [x] `.qftpart` + completion ledger resume (parallel chunks land out of order)
- [x] explicit failure + single-stream fallback when the peer ignores Range
- [x] parallel upload (init/chunk/finish), fixed 4 MiB chunks × 6 workers
iPhone ↔ iPhone (AirDrop-style)
- [x] AWDL `includePeerToPeer` + TLS-PSK, key carried by the QR
- [x] multi-file queue (QFTP2P2); manifest digest in the QR, manifest itself on the wire
- [x] per-file SHA-256, partial files removed on any failure
- [ ] physical AWDL run with the router switched off
Compatibility
- [x] deployment target iOS 15.0 (iPhone 6s and later)
- [x] iOS 16/17 APIs behind `App/Compatibility.swift` forks
- [x] no `loadUnaligned` (Swift 5.7 runtime) in the core layer
- [x] 180 core-layer checks green via `swiftc` on macOS, no Xcode required
- [ ] Xcode build of the App layer (no Xcode on the authoring machine)
See `TEST_REPORT.md` and `TEST_RESULTS.txt` for executed evidence and limitations.