Tags: ohuc/CaffeineHealth
Tags
Fix Health Connect two-way sync and bump version to v2.2.2-beta.2 - Add name field to NutritionRecord so drinks show their actual name instead of generic 'Meal' - Use clientRecordId + clientRecordVersion for idempotent upserts (edits no longer duplicate in HC) - Propagate edits, deletes, duplicates, and Reset Today to Health Connect - Add READ_NUTRITION permission and import caffeine records from other apps (30-day window, deduplicated) - Widget quick-log now pushes to Health Connect - DB migration 9→10 adds healthConnectRecordId column to track imported records Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Fix Health Connect two-way sync and bump version to v2.2.2-beta.2 - Add name field to NutritionRecord so drinks show their actual name instead of generic 'Meal' - Use clientRecordId + clientRecordVersion for idempotent upserts (edits no longer duplicate in HC) - Propagate edits, deletes, duplicates, and Reset Today to Health Connect - Add READ_NUTRITION permission and import caffeine records from other apps (30-day window, deduplicated) - Widget quick-log now pushes to Health Connect - DB migration 9→10 adds healthConnectRecordId column to track imported records Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Fix chart marker overlap and clipping Reduce `MarkerImageRadius` to 12.dp and implement `mergeProximateMarkers` in `ChartDataGenerator` to group consumption entries within 30 minutes of each other, preventing visual icon overlap. Additionally, add a `clipRect` to the marker layer canvas to ensure icons do not draw outside the vertical chart bounds.
Fix F-Droid build: use standard compileSdk syntax, bump to 2.1
compileSdk { version = release(36) { minorApiLevel = 1 } } requires the
Android Extension SDK platform package which is not installed in F-Droid's
build environment. Standard compileSdk = 36 is equivalent for this app.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Add backup and restore functionality and UI tests * Implement `BackupManager` to handle JSON-based export and import of consumption logs, user settings, and custom drink presets. * Add `MyDataSettingsScreen` allowing users to export data to a file or import via merge/replace modes. * Include `ic_coffee_cup.xml` vector resource for UI use. * Add Instrumented tests for `AnalyticsBySourcePage` and `AnalyticsScreen` to verify data display and empty states. * Add Unit tests for `CaffeineChart` to ensure correct line series and live marker sampling.