Skip to content

v2.5.5: Critical Storage Defense, OpenAPI Parity, and Test Suite Expansion

Choose a tag to compare

@saad2134 saad2134 released this 21 Sep 19:27
· 196 commits to main since this release

v2.5.5: Critical Storage Defense, OpenAPI Parity, and Test Suite Expansion


v2.5.5

⚠️ Note for existing GitHub APK users:
Because Dosezy v2.4.2+ transitions to our official production release signing key (required for Google Play), updating directly over older debug-signed APKs requires a quick backup & reinstall:

  1. In Dosezy, go to Menu → Backup & Restore and tap Export/Create Backup.
  2. Uninstall the older version.
  3. Install the new v2.5.5 APK.
  4. Go to Menu → Backup & Restore and tap Restore Backup to restore all profiles, medicines, and history in 1 tap.

📱 Patient App (Android)

  • Critical Storage Exhaustion Protection: Implemented real-time storage checks (StorageUtils) on application launch and resume. When internal storage is critically low (<25 MB) or completely exhausted (0 bytes), a high-visibility LowStorageDialog alerts the patient before SQLite transactions or background write operations fail with SQLiteFullException, providing a 1-tap shortcut directly to Android Storage Settings to clear space.
  • 12-Language Storage Alert Translations: Added native translations for storage warning titles, descriptions, and action buttons across all supported locales: English, Arabic, Bengali, German, Spanish, French, Hindi, Italian, Japanese, Portuguese, Russian, and Chinese.
  • Massive Unit Test Suite Expansion (214 Tests): Expanded test coverage across the highest-value core logic layers with a 100% JVM pass rate:
    • ViewModel State Flows: Reactive unit tests for ScheduleViewModel and MedicineViewModel verifying dose marking, late states, undo actions, date filtering, and user profile switching.
    • In-Memory Room SQLite Database Tests: Validated date-range queries, UTC epoch millis boundaries, @Transaction ScheduleWithMedicine joins, and SQLite foreign key cascading deletes (ON DELETE CASCADE).
    • Backup & Restore Validation: Tested backward-compatibility parsing of legacy backup payloads, corrupted date/time string resilience, and zip path traversal security defenses (Zip Slip).

🔌 API & Shared Data Contracts

  • OpenAPI 3.0 Canonical Schema Parity: Fully synchronized api/openapi.yaml with the latest mobile Room entities (v14):
    • Added customDosages variable dosage maps for Medicine and MedicineInput.
    • Added resolved slot dosage attributes for ScheduleEntry and ScheduleEntryInput.
    • Added AlarmSound enum schema (SYSTEM_DEFAULT, GENTLE_CHIME, MEDICAL_MARIMBA, BRISK_PULSE, CALM_BELL, CUSTOM).
    • Added missing User preference properties: naggingRemindersEnabled, naggingIntervalMinutes, naggingMaxRepeats, alarmSound, customAlarmSoundPath, customAlarmSoundTitle, alarmDurationSeconds, allowDoseSkipping, allowCustomDoseTime, and hideAddMedicineNavButton.

🌐 Documentation & Marketing Website

  • Updated version badges, download assets, and release references across the website.

Full Changelog: v2.5.4...v2.5.5