Some checks failed
CI - Multi-Platform Native / Build iOS (RSSuper) (push) Has been cancelled
CI - Multi-Platform Native / Build macOS (push) Has been cancelled
CI - Multi-Platform Native / Build Android (push) Has been cancelled
CI - Multi-Platform Native / Build Linux (push) Has been cancelled
CI - Multi-Platform Native / Build Summary (push) Has been cancelled
40 lines
913 B
Markdown
40 lines
913 B
Markdown
# 28. Implement Android settings/preferences store
|
|
|
|
meta:
|
|
id: native-business-logic-migration-28
|
|
feature: native-business-logic-migration
|
|
priority: P1
|
|
depends_on: [native-business-logic-migration-16]
|
|
tags: [implementation, android, settings]
|
|
|
|
objective:
|
|
- Implement settings store using DataStore and SharedPreferences
|
|
|
|
deliverables:
|
|
- SettingsStore.kt
|
|
- AppSettings.kt
|
|
- ReadingPreferences.kt
|
|
- NotificationPreferences.kt
|
|
- Settings migration
|
|
|
|
tests:
|
|
- Unit: Test property storage/retrieval
|
|
- Unit: Test defaults
|
|
- Unit: Test synchronization
|
|
|
|
acceptance_criteria:
|
|
- All settings persisted
|
|
- Defaults properly set
|
|
- Changes observed in real-time
|
|
- Preferences encrypted if needed
|
|
- Settings migrated between versions
|
|
|
|
validation:
|
|
- Run `./gradlew test`
|
|
- Test with Application Info > Preferences
|
|
|
|
notes:
|
|
- Use DataStore for new code
|
|
- Use SharedPreferences for simple values
|
|
- Observe changes with Flow
|