Fix two live bugs: delete AppDatabase and singleton-ify API service #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/refactor-2-quick-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Delete AppDatabase.kt: same DB file name as MedicationDatabase but
declares schema v1 with no migrations — any future call would throw
on a user's device with their notes inside.
Make MedicationApiService a process-wide singleton via getInstance().
Multiple MedicationRepository instances (ViewModel, UpdateWorker,
activity.recreate()) were each building their own OkHttp Cache over
the same directory, which is explicitly unsupported and leaks on
every language switch.
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com