feat(android): 支持 Android Motion Photo,复用 isLivePhoto 与 LIVE 角标 - #1367
Draft
HumorSmith wants to merge 6 commits into
Draft
feat(android): 支持 Android Motion Photo,复用 isLivePhoto 与 LIVE 角标#1367HumorSmith wants to merge 6 commits into
HumorSmith wants to merge 6 commits into
Conversation
HumorSmith
commented
Feb 9, 2026
- 新增 MotionPhotoUtils:通过 EXIF/XMP MicroVideo、MotionPhoto 检测 motion photo
- AssetEntity 增加 subtype 字段,motion photo 时设为与 iOS live photo 相同取值
- CursorExtensions 在构建 Asset 时检测并设置 subtype
- ConvertUtils 向 Flutter 传递 subtype
- 更新 entity 注释:Android motion photo 亦视为 isLivePhoto
- 新增 MotionPhotoUtils:通过 EXIF/XMP MicroVideo、MotionPhoto 检测 motion photo - AssetEntity 增加 subtype 字段,motion photo 时设为与 iOS live photo 相同取值 - CursorExtensions 在构建 Asset 时检测并设置 subtype - ConvertUtils 向 Flutter 传递 subtype - 更新 entity 注释:Android motion photo 亦视为 isLivePhoto Co-authored-by: Cursor <cursoragent@cursor.com>
AlexV525
requested changes
Feb 28, 2026
AlexV525
left a comment
Member
There was a problem hiding this comment.
- 移除 AIGC 注释
- 对外接口复用 Live Photo 相关命名,不使用 Motion Photo,比如
saveLivePhoto - 回滚非必要修改,比如 example 中 SDK 和
DEVELOPMENT_TEAM的配置 - 代码格式化
| } | ||
| } | ||
| // AIGC START - detect motion photo when width/height already set (no exif opened above) | ||
| if (type == MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE && !mimeType.contains("svg") && imageSubtype == 0) { |
Member
There was a problem hiding this comment.
cursor 转换时对每一张图片都进行 XMP 解码会大幅增加列表加载时长;考虑重新设计接口为异步
…7 崩溃 在特定 iOS 版本上,PLPersistentContainer 初始化 CoreData 时断言失败 抛出 NSInternalInconsistencyException,导致 SIGABRT。 添加 @try/@catch 保护关键调用点,异常时返回 nil 而非崩溃。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
AlexV525
marked this pull request as draft
July 22, 2026 05:44
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.