Goal
Initialize a SQLite (via Room) database for storing sources, articles, keywords, labels, properties, secrets, and settings. Implement a centralized service to handle CRUD operations and event callbacks.
Details
Context
The application needs an offline-first data model capable of storing feeds (renamed to sources), articles, metadata, dynamic properties, settings, and encrypted credentials. A centralized data service is needed to manage these entities reactively and support lifecycle events (hooks) for CRUD actions.
Requirements
- [x] [TSK-20260804-003.1] Data Model Design & Refactoring: Refactor
FeedEntityandFeedItemEntitytoSourceEntityandArticleEntity. Create entities forKeywordEntity,LabelEntity, cross-reference tables, EAVPropertyEntity,SourceSecretEntity, andSettingEntity. - [x] [TSK-20260804-003.2] Cryptographic Storage: Implement AES-GCM encryption helper backed by Android Keystore to encrypt and decrypt source secrets before storage.
- [x] [TSK-20260804-003.3] Database Seeding: Support database seeding via
RoomDatabase.Callbackupon installation/first launch. - [x] [TSK-20260804-003.4] Centralized Database Service: Implement a thread-safe
DatabaseServicewith CRUD APIs, transactions, and an observer system supportingOnEntityChangeListenercallbacks. - [x] [TSK-20260804-003.5] Documentation & Diagrams: Update project documentation and compile the data model diagrams.
Status
- [ ] Not started
- [ ] In progress
- [x] Completed