Skip to content

Latest commit

ย 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿธ Focus Frog

A focus timer where every completed session feeds and grows a virtual frog pet.

Focus Frog is a feature-rich, offline-first Android productivity application built with Jetpack Compose (Material 3), Room Database, DataStore Preferences, Jetpack Glance, WorkManager, and SoundPool. Stay focused, earn bugs (currency), grow your virtual frog pet (Lily), customize your pond, and track your focus journey!


โœจ Features (v1.0 โ€“ v2.5 Complete)

  • โฑ๏ธ Focus Timer & Custom Durations (v1.0 & v2.2): Quick preset duration chips (5m, 15m, 25m, 50m) plus a Custom Duration Picker (1โ€“120 minutes) with inline validation and persistent DataStore storage.
  • ๐Ÿธ Frog Pet System (v1.1): Custom Jetpack Compose Canvas vector renderer featuring 4 growth stages (Tadpole, Froglet, Big Frog, Royal Frog), 3 mood states (Happy, Neutral, Hungry), and reactive happy-jump bounce animations.
  • ๐ŸŽ‰ Stage Evolution Celebration (v2.5): Interactive celebration dialog overlay, happy jump animation, and chime when your frog evolves to a new stage (Tadpole $\rightarrow$ Froglet $\rightarrow$ Big Frog $\rightarrow$ Royal Frog).
  • ๐Ÿ’พ Data Persistence & Dynamic Mood (v1.2): Offline-first Room Database (sessions, shop_items, user_stats) & DataStore Preferences (user_settings). Your frog's mood dynamically computes on launch based on your last session date!
  • ๐Ÿ”” Notifications & Reminders (v1.3): Background-only session completion alerts and smart daily evening reminders via WorkManager (18:00 local time) with Android 13+ permission support.
  • ๐Ÿ›’ Pond Shop & Accessory Layers (v1.4 & v2.5): Earn bugs by focusing (+10 bugs per completed session) and spend them on accessories (Frog Hat, Wizard Hat ๐Ÿง™, Cool Shades ๐Ÿ•ถ๏ธ, Bow Tie ๐ŸŽ€, Headphones ๐ŸŽง, Tiny Leaf Umbrella โ˜‚๏ธ, Royal Crown ๐Ÿ‘‘). Layered Canvas rendering supports equipping one item per slot category simultaneously!
  • ๐ŸŽจ Custom Themes (v1.4 & v2.5): 4 palette-strict color schemes โ€” Pond Theme (Cream/Dark), Night Sky ๐ŸŒƒ, Rainforest ๐ŸŒฟ, and Sunset ๐ŸŒ….
  • ๐Ÿ”ฅ Stats & Streaks (v1.5): Live streak calculations (current streak ๐Ÿ”ฅ & best streak โšก), today's sessions counter, total completed sessions, and lifetime focus minutes.
  • ๐Ÿ“– Frog Diary Session History (v2.4): Dedicated session history screen accessible from Stats, grouped by day ("Today", "Yesterday", or formatted dates) showing duration, timestamp, and bugs earned.
  • ๐Ÿ“ฑ Home-Screen Widget (v2.1): Jetpack Glance AppWidget with offscreen bitmap Canvas rendering displaying live pet status, stage, mood, streak, and daily stats.
  • ๐Ÿ”Š Sound & Haptics (v2.3): Low-latency 16-bit PCM SoundPool audio effects (session complete chime, happy jump, coin purchase, thud failed, subtle equip pop) + calm haptic feedback with DataStore toggles.

๐Ÿ› ๏ธ Architecture & Tech Stack

  • Language: Kotlin 2.0.21
  • UI Toolkit: Jetpack Compose (Material 3)
  • Architecture: MVVM + Repository Pattern (FocusRepository, ShopRepository, UserPreferencesRepository)
  • Local Database: Room Database 2.8.4 (SessionDao, ShopDao, UserStatsDao)
  • Preferences: DataStore Preferences 1.1.2
  • Home-Screen Widget: Jetpack Glance 1.1.1 (FocusFrogWidget, FrogBitmapRenderer)
  • Background Work: WorkManager 2.10.0 (DailyReminderWorker, DailyReminderScheduler)
  • Audio & Haptics: SoundPool (Synthesized 16-bit PCM WAV) + VibratorManager
  • Target SDK: 37 | Min SDK: 28 | AGP: 9.3.2

๐Ÿš€ Future Roadmap (v3.0+)

  • โ˜๏ธ Cloud Backup & Sync: Cross-device syncing via Firebase Firestore and Google Sign-In.
  • ๐Ÿ‘ฅ Social Focus Rooms: Focus together with friends in real-time virtual ponds.
  • ๐ŸŽฎ Frog Mini-Games: Catch bugs in the pond for bonus rewards.
  • ๐Ÿ“ฑ Google Play Store Launch: Production release on Google Play.

About

A focus timer where every completed session feeds and grows a virtual frog pet. ๐Ÿธ

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages