Skip to content

v2.2.0 — Custom relays, bath tracking, activity charts & security fixes

Choose a tag to compare

@TurkeyNostr TurkeyNostr released this 22 Aug 01:50
· 29 commits to main since this release

What's New

Custom Relays

  • Added a relay editor in Settings — users can now manually set their own relay list instead of relying solely on NIP-65 auto-discovery
  • One URL per line, with automatic normalization (bare domain → wss://, https:// → wss://, http:// → ws://)
  • Deduplication and validation on apply
  • Custom relays are saved and loaded on next launch without needing a NIP-65 fetch

Bath Tracking

  • Replaced the redundant Weight quick action on the home screen with a Bath quick action (Weight is still accessible via its bottom-nav tab)
  • New Bath screen with three bath types: Full Bath, Sponge Bath, Tub Bath
  • Optional note field, today's bath history with edit-time and delete per entry
  • Full sync pipeline: baths are included in the encrypted NIP-44 backup payload and restored on partner sync
  • Database migration 3→4 (adds baths table, all existing data preserved)

Activity Trend Charts

  • Charts screen now has two tabs: Growth and Activity
  • Growth tab: the existing WHO weight-for-age chart (unchanged)
  • Activity tab: new bar charts with period and metric selectors
  • Period options: Daily (7 days), Weekly (8 weeks), Monthly (6 months), Yearly (5 years)
  • Metric options: Feedings (count), Sleep (hours), Diapers (count), Baths (count), Pumping (ml total), Weight (entries), Milestones (count), Health Records (count)
  • Current period bar is highlighted; empty data shows a placeholder message
  • BarChart component extracted to a shared file for reuse

Baby Bottle App Icon

  • Replaced the crescent moon icon with a solid baby bottle silhouette (the moon was hard to make out at launcher size)
  • Icon background still follows the selected color theme

Bug Fixes

NIP-65 Relay Regression

  • Fixed a regression where users could only see hardcoded default relays instead of their NIP-65 relays
  • Root cause: the RelayPool always started with hardcoded defaults and relied on a background NIP-65 fetch to reconfigure. The applyIcon() call from the themed-icon feature could cause a process restart, killing the fetch coroutine before it completed
  • Fix: relays are now loaded from storage on startup so the pool starts with the correct relays immediately. applyIcon() now runs after initialization completes

Security Fixes

NIP-05 Identifier Leak in logcat

  • 5 Log.d/Log.e/Log.w calls were writing full NIP-05 identifiers to Android's system logcat, which can be captured in bug reports or read by apps with READ_LOGS permission
  • All 5 now truncate identifiers to 20 characters
  • The in-app debug log was already clean (uses truncated identifiers throughout)

JSON Backup Export Warning

  • Tapping "Export JSON Backup" now shows a confirmation dialog warning that the file is not encrypted
  • Dialog explains the file contains all tracking data in plaintext (child's name, feeding times, sleep logs, notes) but does NOT include the Nostr private key
  • Nothing exports until the user explicitly acknowledges

Notes

  • APK size: 28 MB (debug, unchanged)
  • Zero new dependencies added
  • Database version bumped to 4 (migration included)