feature/version-gated-updates #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/version-gated-updates"
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?
Changed the update model
Refresh sequence now: 1. GET /version.json, validate explicitly (no trusting Gson non-nulls) 2. Compare server version to stored version for current language 3. If equal: update last_checked_at only, skip the ~1.1 MB download 4. If newer: download, validate (non-empty and >= 80% of current count), replace transactionally via MedicationDao.replaceAll(), then persist dataVersion + dataPublishedAt + lastCheckedAt Single OkHttp client with 5 MB cache replaces the two separate Retrofit instances that existed before. MedicationApiService.create() now takes a cacheDir to enable ETag/If-None-Match on the nginx-served static files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>