Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(android): fix user db engine (#11684)

EYHNb8d9c5417d14
diff --git a/packages/frontend/core/src/modules/userspace/entities/user-db-engine.ts b/packages/frontend/core/src/modules/userspace/entities/user-db-engine.ts
index 07ef680d8d..86c12655f2 100644
--- a/packages/frontend/core/src/modules/userspace/entities/user-db-engine.ts
+++ b/packages/frontend/core/src/modules/userspace/entities/user-db-engine.ts
@@ -17,11 +17,11 @@ export class UserDBEngine extends Entity<{
readonly client: StoreClient;
DocStorageType =
- BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS
+ BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS || BUILD_CONFIG.isAndroid
? SqliteDocStorage
: IndexedDBDocStorage;
DocSyncStorageType =
- BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS
+ BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS || BUILD_CONFIG.isAndroid
? SqliteDocSyncStorage
: IndexedDBDocSyncStorage;