v0.2.7 评审 PR-C:§4.8/§4.9/§4.10/§4.11 命名/CameraX/发布/校验 - #10
Merged
Conversation
§4.8 qualityScore 命名一致: - PlateRecord.confidence → qualityScore(@ColumnInfo(name="confidence") 保留兼容旧 schema); - CSV 列名"置信度"→"候选质量分";README 同步;RecordsList/CsvExporter 引用更新; - CsvExporterTest 断言新列名。 §4.9 CameraX 只解绑自有 UseCase: - 保存本页面绑定的 Preview 引用(boundPreview); - onDispose 用 provider.unbind(preview, imageCapture) 而非 unbindAll, 避免旧页面释放误解绑新页面或其他 CameraX 用例。 §4.10 发布闭环: - 签名校验:CI_DEBUG_CERT_SHA256 未设置时 ::error:: 拒绝发布(不再跳过); - 新增"Verify version matches tag":aapt2 dump badging 提取 versionName 比对 Tag, 不一致直接失败。 §4.11 Repository 业务不变量 + 文件边缘: - PlateRepository.add/confirmSession/applyCorrection 用 PlateValidator.isValid 强制校验, 非 UI 调用也无法写入非法车牌; - ImageStore.importToLocal 用 UUID 命名(避免毫秒时间戳并发碰撞); - 删除 PlateRepository 未使用的 context(§4.11,PR-B 已改构造器,此处补注释)。 参考:V0.2.7_CURRENT_ISSUES_AND_RECOMMENDATIONS.md §4.8/§4.9/§4.10/§4.11 Co-Authored-By: Claude <noreply@anthropic.com>
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.
qualityScore 命名一致 + CameraX 只解绑自有 + 发布闭环(指纹必填+版本对齐)+ Repository 强制校验。详见 commit。