Conversation
…rityCheck Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Claude finished @insipx's task —— View job Code Review - August 25, 2026 14:14 UTC
SummaryThis PR successfully adds mobile bindings for database integrity checking, matching the patterns established in Node and WASM bindings. The implementation is clean and well-tested. Overall: LGTM with minor observations below. Code Quality ✅The implementation follows established patterns:
Potential Issues
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## insipx/db-integrity-7-browser-sdk #4040 +/- ##
====================================================================
Coverage ? 85.94%
====================================================================
Files ? 420
Lines ? 68885
Branches ? 0
====================================================================
Hits ? 59201
Misses ? 9684
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Stacked on #4039. uniffi mobile bindings:
FfiIntegrityCheckLevel,FfiIntegrityCheckOutcome,FfiXmtpClient.db_integrity_check(level?)and freecheck_database_integrity(db_path, encryption_key?, level?)— both async viaspawn_blockingaround the sync Rust calls; key conversion mirrorscreate_client("Malformed 32 byte encryption key"). 3 backend-connected tests (ok / by-path ok on encrypted DB / wrong-key unreadable). clippy-D warnings+ fmt clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01V1AXHNsnQmHW174i5rRUEb
Note
Add mobile FFI bindings for database integrity checks
FfiIntegrityCheckLevelenum andFfiIntegrityCheckOutcomerecord with conversions toxmtp_dbtypescheck_database_integrityfree function for read-only path-based checks, validating optional 32-byte encryption keysFfiXmtpClient.db_integrity_checkmethod to run checks against the client's databasetokio::task::spawn_blockingand return structured outcomes with standardized strings (ok,corrupt,unreadable,saltMissing,locked,failed)Macroscope summarized dc5b3d0.