feat(media): 支援跨平台相機媒體上傳 - #123
Merged
Merged
Conversation
js051
marked this pull request as ready for review
August 9, 2026 16:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
變更內容
MEDIA_UPLOAD能力、資料模型、repository 與 backend 合約。SendObjectInfo/SendObject上傳,並加入 SAF 暫存、儲存裝置與格式能力判斷、重名防護、完整 readback 驗證及取消後狀態調和。設計重點
相機只有在實際公告必要 PTP/gPhoto2 能力、具可寫入儲存空間且接受檔案格式時,才會顯示上傳功能。資料傳送成功後會重新讀取媒體列表,以檔名與精確大小確認提交結果;取消恰好發生在相機提交邊界時,也會重新調和狀態,避免把已完成的上傳誤報為取消。
驗證
testDebugUnitTest compileDebugAndroidTestKotlin lintDebug assembleDebugnode --check、npm auditgit diff --check真機驗證狀態
Canon EOS R6 Mark III 的 USB 媒體上傳、取消邊界與精確 readback 仍須實體相機確認。合併只代表 executable path 與自動測試達到 main 的工程門檻;在提交實體證據前,不會把該機型標記為已驗證支援。