Files
AFFiNE/packages/frontend/apps/android
DarkSky c471cfc9a5 feat(core): improve sync protocol (#15854)
#### PR Dependency Tree


* **PR #15854** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Added workspace document lifecycle tracking, including trashed and
deleted states, with migration support.
* Added workspace inventory syncing and state refresh across cloud and
local storage, improving document discovery and offline synchronization.
* Added clearer messages for invalid or oversized document updates and
temporarily unavailable sync or validation.
* Added paused-upload diagnostics and a Quick Export shortcut for
relevant workspace sync issues.

* **Improvements**
* Search, indexing, and document metadata now reflect workspace
inventory and lifecycle state.
* Restoring from history preserves concurrent edits made during
recovery.
* Unused-blob checks now scan document content and detect changes during
scanning.

* **Bug Fixes**
* Invalid document updates are rejected without partially saving a
batch.
* Document reading handles missing or cyclic block relationships more
reliably.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-16 19:37:14 +08:00
..
2026-09-20 13:01:49 +08:00

Android

AFFiNE Android app.

Setup

  • set CARGO_HOME to your system environment

  • add

    rust.cargoCommand={replace_with_your_own_cargo_home_absolute_path}/bin/cargo

    rust.rustcCommand={replace_with_your_own_cargo_home_absolute_path}/bin/rustc

    to App/local.properties

Build

  • yarn install
  • BUILD_TYPE=canary PUBLIC_PATH="/" yarn affine @affine/android build
  • yarn affine @affine/android cap sync
  • yarn affine @affine/android cap open android