migration start
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

This commit is contained in:
2026-03-29 14:12:17 -04:00
parent af87f9f571
commit d346b527e6
51 changed files with 4476 additions and 69 deletions

View File

@@ -0,0 +1,39 @@
# 19. Implement Android background sync service
meta:
id: native-business-logic-migration-19
feature: native-business-logic-migration
priority: P1
depends_on: [native-business-logic-migration-16]
tags: [implementation, android, background]
objective:
- Implement background feed sync using WorkManager
deliverables:
- SyncWorker.kt
- SyncScheduler.kt
- SyncConfiguration.kt
- WorkManager configuration
- Foreground service (if needed)
tests:
- Unit: Test Worker execution
- Unit: Test scheduler configuration
- Integration: Test background execution
acceptance_criteria:
- Work scheduled properly
- Constraints respected (network, charging)
- Battery-efficient scheduling
- Proper work cancellation
- State persisted between runs
validation:
- Test with WorkManager TestRule
- Verify with adb commands
notes:
- Use PeriodicWorkRequest
- Set appropriate constraints
- Handle Doze mode